From ca58a2cfb638aa4dd364f04e351d324dbce7124e Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Sun, 22 Mar 2015 08:11:10 +1100 Subject: [PATCH] check the calculated NDK platform path for validity --- distribute.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/distribute.sh b/distribute.sh index 1a79d14e30..4f31bb179f 100755 --- a/distribute.sh +++ b/distribute.sh @@ -341,6 +341,14 @@ function run_prepare() { export ARCH="armeabi" #export ARCH="armeabi-v7a" # not tested yet. + info "Check NDK location" + if [ ! -d "$NDKPLATFORM" ]; then + error "Invalid NDK platform" + error "Looking in $NDKPLATFORM" + error "Using ANDROIDNDK=$ANDROIDNDK and ANDROIDAPI=$ANDROIDAPI" + exit -1 + fi + info "Check mandatory tools" # ensure that some tools are existing for tool in tar bzip2 unzip make gcc g++; do