From aced83ab4b95c6ebd4b929a1e19e500e7afe3d70 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Mon, 2 Apr 2012 10:22:10 +0200 Subject: [PATCH] improve prepare-sources.sh --- prepare_sources.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/prepare_sources.sh b/prepare_sources.sh index 3fa41adb9..e7486f0a7 100755 --- a/prepare_sources.sh +++ b/prepare_sources.sh @@ -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