Add check for setenv-*.sh scripts

pull/696/head
Jeffrey Walton 2018-07-30 15:32:53 -04:00
parent 4fc5b8da13
commit 12bb4866dd
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 10 additions and 0 deletions

View File

@ -11,6 +11,11 @@
# ====================================================================
set +e
if [ -z $(command -v ./setenv-android-gcc.sh) ]; then
echo "Pailed to locate setenv-android-gcc.sh"
[[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1
fi
if [ -z "${PLATFORM-}" ]; then
PLATFORMS=(armeabi armeabi-v7a armv7a-neon aarch64 mipsel mipsel64 x86 x86_64)
else

View File

@ -10,6 +10,11 @@
# See http://www.cryptopp.com/wiki/iOS_(Command_Line) for more details
# ====================================================================
if [ -z $(command -v ./setenv-ios.sh) ]; then
echo "Pailed to locate setenv-ios.sh"
[[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1
fi
if [ -z "${PLATFORM-}" ]; then
PLATFORMS=(iPhoneOS iPhoneSimulator Arm64 WatchOS WatchSimulator AppleTVOS AppleTVSimulator)
else