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