1 cd $(dirname "$0") 2 rm -rf obj output-dir 3 export NDK_OUT=output-dir 4 $NDK/ndk-build "$@" 5 if [ -d obj ] ; then 6 echo "FAILURE: 'obj' directory should not be created by ndk-build!" 7 exit 1 8 fi 9 if [ ! -d output-dir ]; then 10 echo "FAILURE: 'output-dir' should have been created by ndk-build!" 11 exit 1 12 fi 13 rm -rf output-dir 14 15 16