Parcourir la source

makerelease: Provide ANDROID_HOME from outside

Tatsuhiro Tsujikawa il y a 12 ans
Parent
commit
0a4b21e33b
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      makerelease

+ 5 - 1
makerelease

@@ -1,5 +1,10 @@
 #!/bin/sh -e
 
+if [ -z "$ANDROID_HOME" ]; then
+    echo 'No $ANDROID_HOME specified.'
+    exit 1
+fi
+
 VERSION=$1
 PREV_VERSION=$2
 
@@ -27,7 +32,6 @@ make -j3
 make distclean
 
 # android
-export ANDROID_HOME=/home/tatsuhiro/workspace/android/android-9-r8b
 ./android-config
 ./android-make -j3
 ./android-release