Skip to content

Commit

Permalink
Merge pull request #304 from perotinus/master
Browse files Browse the repository at this point in the history
Update build-mogenerator-Info.plist.sh to use DERIVED_FILE_DIR instead of TMPDIR
  • Loading branch information
Justin Williams committed Sep 7, 2015
2 parents a857c78 + 0a73545 commit e548e6d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
5 changes: 3 additions & 2 deletions build-mogenerator-Info-plist.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
rm -f $TMPDIR/mogenerator-Info.plist
TMPDIR=${DERIVED_FILE_DIR}
rm -f "${TMPDIR}/mogenerator-Info.plist"
/usr/libexec/PlistBuddy \
-c "Clear" \
-c "Import :human.h.motemplate templates/human.h.motemplate" \
Expand All @@ -7,4 +8,4 @@ rm -f $TMPDIR/mogenerator-Info.plist
-c "Import :machine.h.motemplate templates/machine.h.motemplate" \
-c "Import :machine.m.motemplate templates/machine.m.motemplate" \
-c "Import :machine.swift.motemplate templates/machine.swift.motemplate" \
$TMPDIR/mogenerator-Info.plist
"${TMPDIR}/mogenerator-Info.plist"
11 changes: 9 additions & 2 deletions mogenerator.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,15 @@
files = (
);
inputPaths = (
"$(SRCROOT)/templates/human.m.motemplate",
"$(SRCROOT)/templates/human.h.motemplate",
"$(SRCROOT)/templates/human.swift.motemplate",
"$(SRCROOT)/templates/machine.h.motemplate",
"$(SRCROOT)/templates/machine.m.motemplate",
"$(SRCROOT)/templates/machine.swift.motemplate",
);
outputPaths = (
"$(DERIVED_FILE_DIR)/motemplate-Info.plist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand Down Expand Up @@ -531,7 +538,7 @@
"-sectcreate",
__TEXT,
__info_plist,
"$TMPDIR/mogenerator-Info.plist",
"$(DERIVED_FILE_DIR)/mogenerator-Info.plist",
);
PRODUCT_NAME = mogenerator;
WARNING_CFLAGS = "-Wall";
Expand All @@ -553,7 +560,7 @@
"-sectcreate",
__TEXT,
__info_plist,
"$TMPDIR/mogenerator-Info.plist",
"$(DERIVED_FILE_DIR)/mogenerator-Info.plist",
);
PRODUCT_NAME = mogenerator;
WARNING_CFLAGS = "-Wall";
Expand Down

0 comments on commit e548e6d

Please sign in to comment.