summaryrefslogtreecommitdiffstats
path: root/packaging/android/android-build-wrapper.sh
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2017-11-16 12:35:17 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-16 10:23:00 -0800
commitc92a86f89832c5face68b94902dbd119a3b10860 (patch)
tree101ce5971fe9b23bdf3c9c5c568c565dc5136078 /packaging/android/android-build-wrapper.sh
parent65b825286c51ed15d270a4fc55d03330e11f1fe2 (diff)
downloadsubsurface-c92a86f89832c5face68b94902dbd119a3b10860.tar.gz
android: Don't re-clone subsurface in android-build-wrapper.sh
Just use the source tree you where called from instead. Signed-off-by: Anton Lundin <glance@acc.umu.se>
Diffstat (limited to 'packaging/android/android-build-wrapper.sh')
-rwxr-xr-xpackaging/android/android-build-wrapper.sh12
1 files changed, 2 insertions, 10 deletions
diff --git a/packaging/android/android-build-wrapper.sh b/packaging/android/android-build-wrapper.sh
index 36a690520..f7cde0f6c 100755
--- a/packaging/android/android-build-wrapper.sh
+++ b/packaging/android/android-build-wrapper.sh
@@ -94,14 +94,6 @@ if [ ! -d $ANDROID_SDK ] ; then
popd
fi
-# ok, now we have Qt, SDK, and NDK - let's get us some Subsurface
-if [ ! -d subsurface ] ; then
- git clone https://github.com/Subsurface-divelog/subsurface.git
-fi
-pushd subsurface
-git pull --rebase
-popd
-
if [ ! -d libdivecomputer ] ; then
git clone -b Subsurface-branch https://github.com/Subsurface-divelog/libdc.git libdivecomputer
pushd libdivecomputer
@@ -132,9 +124,9 @@ rm -f ./subsurface-mobile-build-arm/build/outputs/apk/*.apk
rm -df ./subsurface-mobile-build-arm/AndroidManifest.xml
if [ "$USE_X" ] ; then
- bash "$USE_X" subsurface/packaging/android/build.sh -buildnr "$BUILDNR" arm "$@"
+ bash "$USE_X" "$SUBSURFACE_SOURCE"/packaging/android/build.sh -buildnr "$BUILDNR" arm "$@"
else
- bash subsurface/packaging/android/build.sh -buildnr "$BUILDNR" arm "$@"
+ bash "$SUBSURFACE_SOURCE"/packaging/android/build.sh -buildnr "$BUILDNR" arm "$@"
fi
ls -l ./subsurface-mobile-build-arm/build/outputs/apk/*.apk