stop changing directiories/assuing where it'll be run from

This commit is contained in:
Eric House 2012-02-13 22:15:34 -08:00
parent 05c220cf40
commit 8590466229

View file

@ -1,6 +1,11 @@
#!/bin/sh
OLDDIR=$(pwd)
set -e -u
if [ ! -e build.xml ]; then
echo "no build.xml; please run from root of source tree"
exit 1
fi
if [ -z "$NDK_ROOT" ]; then
echo -n "NDK_ROOT not set... "
@ -8,9 +13,6 @@ if [ -z "$NDK_ROOT" ]; then
exit 1
fi
cd $(dirname $0)/../XWords4
${NDK_ROOT}/ndk-build $*
cd $OLDDIR
echo "$0 done"