Index: platform_tools/ios/bin/ios_ninja |
diff --git a/platform_tools/ios/bin/ios_ninja b/platform_tools/ios/bin/ios_ninja |
index 054f1084e922ebb0a5fb69bb2623a8650ccd9a1c..55f30bb0f37fd78b5a4df0b16895134a0b7df26a 100755 |
--- a/platform_tools/ios/bin/ios_ninja |
+++ b/platform_tools/ios/bin/ios_ninja |
@@ -7,14 +7,16 @@ |
# found in the LICENSE file. |
############################################################################### |
# |
-# Build the skia for ios. This assumes that GYP_DEFINES has been set. |
+# Build the skia for ios. This assumes that GYP_DEFINES has been set. |
# |
+set -x -e |
+ |
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
source $SCRIPT_DIR/ios_setup.sh |
-pushd |
-cd ${SKIA_SRC_DIR} |
+OLD_DIR=`pwd` |
+cd ${SKIA_SRC_DIR} |
"${SKIA_SRC_DIR}/gyp_skia" |
xcodebuild -project "$SKIA_SRC_DIR/out/gyp/iOSShell.xcodeproj"\ |
-configuration "$BUILDTYPE" |
-popd |
+cd $OLD_DIR |