summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-12-05 20:07:46 +0200
committerTor Lillqvist <tml@collabora.com>2013-12-05 20:08:29 +0200
commitdfe3df890a3649aa0b407d34e0248c74a9e25c2f (patch)
tree62ef680f85d181d6ec5ded86e799f07d6fbdee55 /ios
parent895e6e7bb7abddb135f6fe3cfef1505261d4cbc6 (diff)
Make this actually work both when SRCDIR equals and not equals BUILDIR
Change-Id: I0287820bf0b5a1f0645bd032fb1071db5ce168c5
Diffstat (limited to 'ios')
-rw-r--r--ios/CustomTarget_MobileLibreOffice_app.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/ios/CustomTarget_MobileLibreOffice_app.mk b/ios/CustomTarget_MobileLibreOffice_app.mk
index e517e42637e7..27a029cd0926 100644
--- a/ios/CustomTarget_MobileLibreOffice_app.mk
+++ b/ios/CustomTarget_MobileLibreOffice_app.mk
@@ -44,9 +44,9 @@ MobileLibreOffice_setup:
# Libs #
# Create the link flags in the xcconfig for Xcode linkage
all_libs=`$(SRCDIR)/bin/lo-all-static-libs`; \
- sed -i '' -e "s|^\(LINK_LDFLAGS =\).*$$|\1 $$all_libs|" $(LO_XCCONFIG)
+ sed -e "s|^\(LINK_LDFLAGS =\).*$$|\1 $$all_libs|" < $(BUILDDIR)/ios/$(LO_XCCONFIG) > $(BUILDDIR)/ios/$(LO_XCCONFIG).new && mv $(BUILDDIR)/ios/$(LO_XCCONFIG).new $(BUILDDIR)/ios/$(LO_XCCONFIG)
- # Copy lo.xcconfig to source dir for Xcode projects
+ # Copy lo.xcconfig to source dir for the Xcode projects
if test $(SRCDIR) != $(BUILDDIR); then \
cp $(BUILDDIR)/ios/$(LO_XCCONFIG) $(SRCDIR)/ios; \
fi