Skip to content

Commit

Permalink
Update build-mogenerator-Info.plist.sh to use DERIVED_FILE_DIR instea…
Browse files Browse the repository at this point in the history
…d of TMPDIR. TMPDIR is not well-defined, but DERIVED_FILE_DIR is during an Xcode build. Also, make sure paths are quoted.
  • Loading branch information
perotinus committed Jul 24, 2015
1 parent d610ed5 commit 3df8b79
Show file tree
Hide file tree
Showing 2 changed files with 5 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"
4 changes: 2 additions & 2 deletions mogenerator.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@
"-sectcreate",
__TEXT,
__info_plist,
"$TMPDIR/mogenerator-Info.plist",
"$(DERIVED_FILE_DIR)/mogenerator-Info.plist",
);
PRODUCT_NAME = mogenerator;
WARNING_CFLAGS = "-Wall";
Expand All @@ -552,7 +552,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 3df8b79

Please sign in to comment.