Bashism, coding style consistency

This commit is contained in:
T. Joseph Carter 2015-02-02 07:20:38 -08:00
parent 52756be36a
commit a74687bfc1

View File

@ -41,44 +41,53 @@ if [ -z "$JOBS" ]; then
fi
# Platform Assignment
[ -z "$platform" ] && platform="$(uname)"
[ -z "$platform" ] && platform="`uname`"
case "$platform" in
*BSD*)
FORMAT_EXT='so'
FORMAT_EXT="so"
FORMAT_COMPILER_TARGET=unix
DIST_DIR=bsd;;
DIST_DIR=bsd
;;
osx|*Darwin*)
FORMAT_EXT='dylib'
FORMAT_EXT="dylib"
FORMAT_COMPILER_TARGET=osx
DIST_DIR=osx;;
DIST_DIR=osx
;;
win|*mingw32*|*MINGW32*|*MSYS_NT*)
FORMAT_EXT='dll'
FORMAT_EXT="dll"
FORMAT_COMPILER_TARGET=win
DIST_DIR=win_x86;;
DIST_DIR=win_x86
;;
win64|*mingw64*|*MINGW64*)
FORMAT_EXT='dll'
FORMAT_EXT="dll"
FORMAT_COMPILER_TARGET=win
DIST_DIR=win_x64;;
DIST_DIR=win_x64
;;
*psp1*)
FORMAT_EXT='a'
FORMAT_EXT="a"
FORMAT_COMPILER_TARGET=psp1
DIST_DIR=psp1;;
DIST_DIR=psp1
;;
*ios|theos_ios*)
FORMAT_EXT='dylib'
FORMAT_EXT="dylib"
FORMAT_COMPILER_TARGET=theos_ios
DIST_DIR=theos;;
DIST_DIR=theos
;;
android)
FORMAT_EXT='so'
FORMAT_EXT="so"
FORMAT_COMPILER_TARGET=android
DIST_DIR=android;;
DIST_DIR=android
;;
*android-armv7*)
FORMAT_EXT='so'
FORMAT_EXT="so"
FORMAT_COMPILER_TARGET=android-armv7
DIST_DIR=android/armeabi-v7a;;
DIST_DIR=android/armeabi-v7a
;;
*)
FORMAT_EXT='so'
FORMAT_EXT="so"
FORMAT_COMPILER_TARGET=unix
DIST_DIR=unix;;
DIST_DIR=unix
;;
esac
export FORMAT_COMPILER_TARGET_ALT="$FORMAT_COMPILER_TARGET"