Skip to content

Commit

Permalink
Move helper build scripts under /scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin committed May 22, 2015
1 parent 861241e commit 6e20ba1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Asepsis.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"$PROJECT_DIR/build.sh\"\n";
shellScript = "\"$PROJECT_DIR/scripts/build.sh\"\n";
showEnvVarsInLog = 0;
};
D657214613F09C230087EE6E /* Clean bin */ = {
Expand All @@ -286,7 +286,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "BIN=\"$PROJECT_DIR/bin\"\nrm -rf \"$BIN\"\nmkdir -p \"$BIN\"";
shellScript = "\"$PROJECT_DIR/scripts/clean.sh\"";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
Expand Down
4 changes: 3 additions & 1 deletion build.sh → scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

if [ ${#PROJECT_DIR} -le 10 ]; then echo "error: set \$PROJECT_DIR env variable" ; exit 1; fi

BIN="$PROJECT_DIR/bin"
mkdir -p "$BIN"
BIN=`cd "$BIN";pwd` # normalize path
Expand All @@ -13,7 +15,7 @@ UNINSTALLER="$TARGET/Asepsis Uninstaller.app"
PACKAGER="$PROJECT_DIR/packager"

echo "build products dir is $BUILT_PRODUCTS_DIR"
echo "assembling final products in $BIN"
echo "assembling final products into $BIN"

mkdir -p "$TARGET"

Expand Down
7 changes: 7 additions & 0 deletions scripts/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

if [ ${#PROJECT_DIR} -le 10 ]; then echo "error: set \$PROJECT_DIR env variable" ; exit 1; fi

BIN="$PROJECT_DIR/bin"

rm -rf "$BIN"

0 comments on commit 6e20ba1

Please sign in to comment.