From 0a4b21e33b3db9c07c0a9eb7e322d5201728e796 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 3 Feb 2013 00:19:50 +0900 Subject: [PATCH] makerelease: Provide ANDROID_HOME from outside --- makerelease | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/makerelease b/makerelease index 83b7d3c5ca..054e39943e 100755 --- a/makerelease +++ b/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