diff options
author | jeremiah sypult <jeremiah@sypult.com> | 2013-07-18 00:28:17 -0500 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-06-17 17:43:33 +0100 |
commit | 6391dcd4453a5cc69e74fe87e575184ae7776eed (patch) | |
tree | 5309607649fe4e2e822b637ef6daa3198236c0ca /make-macosx-app.sh | |
parent | b8a7dedacf1e9beaedfe0f4addf64b37e4120beb (diff) |
make-macosx-app.sh using single '=' comparisons
Diffstat (limited to 'make-macosx-app.sh')
-rwxr-xr-x | make-macosx-app.sh | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/make-macosx-app.sh b/make-macosx-app.sh index cde7413e..dec78e81 100755 --- a/make-macosx-app.sh +++ b/make-macosx-app.sh @@ -5,9 +5,9 @@ # if used, it we will store the .app bundle in the target arch build directory # TODO: check for 1 or two parameters -#if [ $# == 0 ] || [ $# -gt 2 ]; then +#if [ $# = 0 ] || [ $# -gt 2 ]; then -if [ "$1" == "" ]; then +if [ "$1" = "" ]; then echo "Usage: $0 target <arch>" echo "Example: $0 release x86" echo "Valid targets are:" @@ -22,9 +22,9 @@ if [ "$1" == "" ]; then exit 1 fi -if [ "$1" == "release" ]; then +if [ "$1" = "release" ]; then TARGET_NAME="release" -elif [ "$1" == "debug" ]; then +elif [ "$1" = "debug" ]; then TARGET_NAME="debug" else echo "Invalid target: $1" @@ -37,11 +37,11 @@ fi CURRENT_ARCH="" if [ "$2" != "" ]; then - if [ "$2" == "x86" ]; then + if [ "$2" = "x86" ]; then CURRENT_ARCH="x86" - elif [ "$2" == "x86_64" ]; then + elif [ "$2" = "x86_64" ]; then CURRENT_ARCH="x86_64" - elif [ "$2" == "ppc" ]; then + elif [ "$2" = "ppc" ]; then CURRENT_ARCH="ppc" else echo "Invalid architecture: $1" @@ -78,7 +78,7 @@ function symlinkArch() IS64=`file "${SRCFILE}.${EXT}" | grep "x86_64" | awk '{print $NF}'` ISPPC=`file "${SRCFILE}.${EXT}" | grep "ppc" | awk '{print $NF}'` - if [ "${IS32}" == "i386" ]; then + if [ "${IS32}" = "i386" ]; then if [ ! -L "${DSTFILE}x86.${EXT}" ]; then ln -s "${SRCFILE}.${EXT}" "${DSTFILE}x86.${EXT}" fi @@ -86,7 +86,7 @@ function symlinkArch() rm "${DSTFILE}x86.${EXT}" fi - if [ "${IS64}" == "x86_64" ]; then + if [ "${IS64}" = "x86_64" ]; then if [ ! -L "${DSTFILE}x86_64.${EXT}" ]; then ln -s "${SRCFILE}.${EXT}" "${DSTFILE}x86_64.${EXT}" fi @@ -94,7 +94,7 @@ function symlinkArch() rm "${DSTFILE}x86_64.${EXT}" fi - if [ "${ISPPC}" == "ppc" ]; then + if [ "${ISPPC}" = "ppc" ]; then if [ ! -L "${DSTFILE}ppc.${EXT}" ]; then ln -s "${SRCFILE}.${EXT}" "${DSTFILE}ppc.${EXT}" fi @@ -219,7 +219,7 @@ for ARCH in $SEARCH_ARCHS; do fi done -if [ "${2}" == "" ]; then +if [ "${2}" = "" ]; then BUILT_PRODUCTS_DIR="${OBJROOT}" else BUILT_PRODUCTS_DIR="${OBJROOT}/${TARGET_NAME}-darwin-${CURRENT_ARCH}" @@ -234,7 +234,7 @@ fi Q3_VERSION=`grep '^VERSION=' Makefile | sed -e 's/.*=\(.*\)/\1/'` -if [ "${IOQ3_CLIENT_ARCHS}" == "" ]; then +if [ "${IOQ3_CLIENT_ARCHS}" = "" ]; then echo "$0: no ioquake3 binary architectures were found for target '${TARGET_NAME}'" exit 1 else |