Skip to content

Commit

Permalink
Allow multiple devs on same machine to use mogenerator
Browse files Browse the repository at this point in the history
When more than one developer is building on the same
machine, an issue existed where the build would fail.
The mogenerator-Info.plist file would be owned by a
different user and could not be removed. This patch
makes sure that a per-user temp dir is being used.

Signed-off-by: Annard Brouwer <[email protected]>
  • Loading branch information
Annard Brouwer committed Nov 20, 2014
1 parent 4ef709c commit 73eac36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build-mogenerator-Info-plist.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rm -f /tmp/mogenerator-Info.plist
rm -f $TMPDIR/mogenerator-Info.plist
/usr/libexec/PlistBuddy \
-c "Clear" \
-c "Import :human.h.motemplate templates/human.h.motemplate" \
Expand All @@ -7,4 +7,4 @@ rm -f /tmp/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" \
/tmp/mogenerator-Info.plist
$TMPDIR/mogenerator-Info.plist
6 changes: 4 additions & 2 deletions mogenerator.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,8 @@
/* Begin PBXProject section */
08FB7793FE84155DC02AAC07 /* Project object */ = {
isa = PBXProject;
attributes = {
};
buildConfigurationList = 1DEB927808733DD40010E9CD /* Build configuration list for PBXProject "mogenerator" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
Expand Down Expand Up @@ -479,7 +481,7 @@
"-sectcreate",
__TEXT,
__info_plist,
"/tmp/mogenerator-Info.plist",
"$TMPDIR/mogenerator-Info.plist",
);
PRODUCT_NAME = mogenerator;
WARNING_CFLAGS = "-Wall";
Expand All @@ -500,7 +502,7 @@
"-sectcreate",
__TEXT,
__info_plist,
"/tmp/mogenerator-Info.plist",
"$TMPDIR/mogenerator-Info.plist",
);
PRODUCT_NAME = mogenerator;
WARNING_CFLAGS = "-Wall";
Expand Down

0 comments on commit 73eac36

Please sign in to comment.