summaryrefslogtreecommitdiffstats
path: root/packaging/android
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-10 06:28:20 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-10 06:29:26 -0800
commit6be08007042bb54fdacaf8430a5f6b10b075fee7 (patch)
tree2b2f263a6a9dc495f60930d92847a92a911ba62f /packaging/android
parent4ceb65938a9d23fcbacf95d0d9bca81763d2a990 (diff)
downloadsubsurface-6be08007042bb54fdacaf8430a5f6b10b075fee7.tar.gz
Update Subsurface-mobile version to 1.0.0
And make sure the version displayed for Android includes both that version and the build version, which is our regular canonical 4 part version number - so this release will be something like "1.0.0 (4.5.2.1047)" Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/android')
-rw-r--r--packaging/android/build.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/packaging/android/build.sh b/packaging/android/build.sh
index 3ca68eb2d..788e00231 100644
--- a/packaging/android/build.sh
+++ b/packaging/android/build.sh
@@ -355,10 +355,13 @@ cmake $MOBILE_CMAKE \
sed -i -e "s/-lcrypto//g" CMakeFiles/subsurface-mobile.dir/link.txt
# set up the version number
-SUBSURFACE_MOBILE_VERSION=$(grep MOBILE_VERSION_STRING ssrf-version.h | awk "{ print \$3 }" )
+
+SUBSURFACE_MOBILE_VERSION=$(grep MOBILE_VERSION_STRING ssrf-version.h | awk '{ print $3 }' | tr -d \" )
+SUBSURFACE_MOBILE_VERSION="${SUBSURFACE_MOBILE_VERSION} ($(grep CANONICAL_VERSION_STRING ssrf-version.h | awk '{ print $3 }' | tr -d \"))"
+
rm -rf android-mobile
cp -a $SUBSURFACE_SOURCE/android-mobile .
-sed -i -e "s/@SUBSURFACE_MOBILE_VERSION@/$SUBSURFACE_MOBILE_VERSION/;s/@BUILD_NR@/$BUILD_NR/" android-mobile/AndroidManifest.xml
+sed -i -e "s/@SUBSURFACE_MOBILE_VERSION@/\"$SUBSURFACE_MOBILE_VERSION\"/;s/@BUILD_NR@/$BUILD_NR/" android-mobile/AndroidManifest.xml
# now build Subsurface and use the rest of the command line arguments
make $@