diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2012-09-20 17:52:00 -0700 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2012-09-21 15:32:05 -0700 |
commit | 2c1bb7ca4db1efd528e2ae7beac53b1b04cdb154 (patch) | |
tree | 85f075f4918bff20bd2a31c922b5f9b2cdbd7bc1 /ndk-gdb | |
parent | 97c323109f486038f65728019b74e8482ae5ce90 (diff) | |
download | ndk-2c1bb7ca4db1efd528e2ae7beac53b1b04cdb154.tar.gz |
Bail out when NDK installation path contains space
Check to ensure NDK isn't installed in path
containing space. Many NDK scripts aren't ready to handle
path with space yet.
Change-Id: I1a76a9ff7bb84fd9a5c27f73e17b753c858070e7
Diffstat (limited to 'ndk-gdb')
-rwxr-xr-x | ndk-gdb | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -24,7 +24,18 @@ # need to launch ndk-gdb from your application project directory # after doing ndk-build && ant install && <start-application-on-device> # -. `dirname $0`/build/core/ndk-common.sh +PROGDIR=`dirname $0` +PROGDIR=`cd $PROGDIR && pwd` + +# Check if absolute NDK path contain space +# +case $PROGDIR in + *\ *) echo "ERROR: NDK path cannot contain space" + exit 1 + ;; +esac + +. $PROGDIR/build/core/ndk-common.sh force_32bit_binaries |