improve prepare-sources.sh

This commit is contained in:
Simon Morlat 2012-04-02 10:22:10 +02:00
parent 29e52cdab4
commit aced83ab4b

View file

@ -4,9 +4,14 @@ topdir=`pwd`
if test -z "$1" ; then
ndk_build_path=`which ndk-build`
if test "$?" != "0" ; then
echo "ndk-build not found in path. Please specify path to android NDK as first argument of $0."
exit 127
fi
NDK_PATH=`dirname $ndk_build_path`
if test -z "NDK_PATH" ; then
echo "Path to Android NDK not set, please specify it as first argument of $0"
echo "Path to Android NDK not set, please specify it as first argument of $0."
exit 127
fi
else
NDK_PATH=$1