summaryrefslogtreecommitdiffstats
path: root/packaging/ios/build.sh
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-03 05:51:57 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-08 20:50:05 +0100
commit6eca1b3ead670ad051e0a4825042f79c78930d1c (patch)
tree5a4fa60085d6f1c3dd8aad7e5258a584e8cbe86c /packaging/ios/build.sh
parent3a7b8d73d88fba9c3c0bc2a215cb4bd65ba6b5b7 (diff)
downloadsubsurface-6eca1b3ead670ad051e0a4825042f79c78930d1c.tar.gz
iOS: fix handling of version option to build.sh
This makes it much more consistent and avoids a silly warning. Also some small README updates. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/ios/build.sh')
-rwxr-xr-xpackaging/ios/build.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh
index 93d6fefe5..6bab1cf20 100755
--- a/packaging/ios/build.sh
+++ b/packaging/ios/build.sh
@@ -4,7 +4,6 @@
set -x
set -e
-doVersion=$1
DEBUGRELEASE="Release"
ARCHS="armv7 arm64 x86_64"
TARGET="iphoneos"
@@ -13,6 +12,11 @@ TARGET2="Device"
while [[ $# -gt 0 ]] ; do
arg="$1"
case $arg in
+ -version)
+ # only update the version info without rebuilding
+ # this is useful when working with Xcode
+ versionOnly="1"
+ ;;
-debug)
# build for debugging
DEBUGRELEASE="Debug"
@@ -68,7 +72,7 @@ fi
# create Info.plist with the correct versions
cat Info.plist.in | sed "s/@MOBILE_VERSION@/$MOBILEVERSION/;s/@CANONICAL_VERSION@/$CANONICALVERSION/;s/@PRODUCT_BUNDLE_IDENTIFIER@/$BUNDLE/" > Info.plist
-if [ "$doVersion" = "version" ] ; then
+if [ "$versionOnly" = "1" ] ; then
exit 0
fi