From e2bc3b55caab1f8079640a5dd527fe350a27cd4d Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 19 Apr 2018 22:39:07 -0400 Subject: [PATCH] Rename setenv-android.sh to setenv-android-gcc.sh (GH #637) This makes room for a Clang/LLVM version of the script --- TestScripts/{setenv-android.sh => setenv-android-gcc.sh} | 6 +++--- setenv-android.sh => setenv-android-gcc.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) rename TestScripts/{setenv-android.sh => setenv-android-gcc.sh} (98%) rename setenv-android.sh => setenv-android-gcc.sh (98%) diff --git a/TestScripts/setenv-android.sh b/TestScripts/setenv-android-gcc.sh similarity index 98% rename from TestScripts/setenv-android.sh rename to TestScripts/setenv-android-gcc.sh index c66ed236..32973cf0 100755 --- a/TestScripts/setenv-android.sh +++ b/TestScripts/setenv-android-gcc.sh @@ -71,7 +71,7 @@ if [ -z "${AOSP_API-}" ]; then else echo "WARNING: Using AOSP_API has been deprecated. Please use AOSP_API_VERSION instead." echo "If you set for example AOSP_API=android-23 then now instead set AOSP_API_VERSION=23" - exit 1 + [ "$0" = "$BASH_SOURCE" ] && exit 1 || return 1 fi ##################################################################### @@ -126,8 +126,8 @@ case "$THE_ARCH" in AOSP_FLAGS="-march=armv7-a -mthumb -mfpu=vfpv3-d16 -mfloat-abi=softfp -DCRYPTOPP_DISABLE_ASM -Wl,--fix-cortex-a8 -funwind-tables -fexceptions -frtti" ;; hard|armv7a-hard|armeabi-v7a-hard) - echo hard, armv7a-hard and armeabi-v7a-hard are not supported, as android uses softfloats - exit 1 + echo hard, armv7a-hard and armeabi-v7a-hard are not supported, as android uses softfloats + [ "$0" = "$BASH_SOURCE" ] && exit 1 || return 1 #TOOLCHAIN_ARCH="arm-linux-androideabi" #TOOLCHAIN_NAME="arm-linux-androideabi" #AOSP_ABI="armeabi-v7a" diff --git a/setenv-android.sh b/setenv-android-gcc.sh similarity index 98% rename from setenv-android.sh rename to setenv-android-gcc.sh index c66ed236..32973cf0 100755 --- a/setenv-android.sh +++ b/setenv-android-gcc.sh @@ -71,7 +71,7 @@ if [ -z "${AOSP_API-}" ]; then else echo "WARNING: Using AOSP_API has been deprecated. Please use AOSP_API_VERSION instead." echo "If you set for example AOSP_API=android-23 then now instead set AOSP_API_VERSION=23" - exit 1 + [ "$0" = "$BASH_SOURCE" ] && exit 1 || return 1 fi ##################################################################### @@ -126,8 +126,8 @@ case "$THE_ARCH" in AOSP_FLAGS="-march=armv7-a -mthumb -mfpu=vfpv3-d16 -mfloat-abi=softfp -DCRYPTOPP_DISABLE_ASM -Wl,--fix-cortex-a8 -funwind-tables -fexceptions -frtti" ;; hard|armv7a-hard|armeabi-v7a-hard) - echo hard, armv7a-hard and armeabi-v7a-hard are not supported, as android uses softfloats - exit 1 + echo hard, armv7a-hard and armeabi-v7a-hard are not supported, as android uses softfloats + [ "$0" = "$BASH_SOURCE" ] && exit 1 || return 1 #TOOLCHAIN_ARCH="arm-linux-androideabi" #TOOLCHAIN_NAME="arm-linux-androideabi" #AOSP_ABI="armeabi-v7a"