cd to the directory where the script exists before creating release

pull/28/head
Tatsuhiro Tsujikawa 2012-09-02 18:56:31 +09:00
parent 887ac19a34
commit 46491fc5b7
2 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,8 @@ fi
TOOLCHAIN=$ANDROID_HOME/toolchain
PATH=$TOOLCHAIN/bin:$PATH
# cd to the directory where this script exists.
cd $(dirname $0)
. ./script-helper
get_version

View File

@ -35,6 +35,8 @@ test -z "$HOST" && HOST=i686-w64-mingw32
test -z "$BUILD_VER" && BUILD_VER=1
test -z "$LABEL" && LABEL=$HOST
# cd to the directory where this script exists.
cd $(dirname $0)
. ./script-helper
get_version