diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-03-05 17:14:33 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-05 17:14:33 -0800 |
commit | a64eef7f82a69652a56f2a4c752c1e9cb533694e (patch) | |
tree | 18786c960571793424dd61a115e5dd4df430c721 /packaging/android/build.sh | |
parent | d42b7f55c4e0aea004a2ba7ba135c173f3615290 (diff) | |
download | subsurface-a64eef7f82a69652a56f2a4c752c1e9cb533694e.tar.gz |
Android build: automate setting the right version number
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/android/build.sh')
-rw-r--r-- | packaging/android/build.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packaging/android/build.sh b/packaging/android/build.sh index 03c2ddae9..7b522b5df 100644 --- a/packaging/android/build.sh +++ b/packaging/android/build.sh @@ -348,6 +348,12 @@ cmake $MOBILE_CMAKE \ # libcrypto - that's not helpful 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 }" ) +rm -rf android-mobile +cp -a $SUBSURFACE_SOURCE/android-mobile . +sed -i -e "s/@SUBSURFACE_MOBILE_VERSION@/$SUBSURFACE_MOBILE_VERSION/" android-mobile/AndroidManifest.xml + # now build Subsurface and use the rest of the command line arguments make $@ |