diff options
author | Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> | 2017-02-08 18:03:34 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-02-09 21:31:11 -0800 |
commit | 1c33951ce65feab862a7fcb725440645ae4c807d (patch) | |
tree | 1c56a150a23508cc5ea8569c4d1f826941a5b5d9 | |
parent | 9470278e873ff37d2e5c5e7e15649301d0395bd5 (diff) | |
download | subsurface-1c33951ce65feab862a7fcb725440645ae4c807d.tar.gz |
Remove useless quotes
Don't quote if you don't have to. Spend those cpu cycles on doing
something more useful, instead.
Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | packaging/android/android-build-wrapper.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packaging/android/android-build-wrapper.sh b/packaging/android/android-build-wrapper.sh index b111e2939..cd96f965f 100644 --- a/packaging/android/android-build-wrapper.sh +++ b/packaging/android/android-build-wrapper.sh @@ -10,7 +10,7 @@ exec 1> >(tee ./build.log) 2>&1 -USE_X=$(case "$-" in *x*) echo "-x" ;; esac) +USE_X=$(case $- in *x*) echo "-x" ;; esac) # these are the current versions for Qt, Android SDK & NDK: @@ -24,11 +24,11 @@ ANDROID_SDK=android-sdk-linux PLATFORM=$(uname) -pushd "$(dirname "$0")/../../" +pushd $(dirname "$0")/../../ export SUBSURFACE_SOURCE=$PWD popd -if [ "$PLATFORM" = "Linux" ] ; then +if [ "$PLATFORM" = Linux ] ; then QT_BINARIES=qt-opensource-linux-x64-android-${LATEST_QT}.run NDK_BINARIES=${ANDROID_NDK}-linux-x86_64.zip SDK_TOOLS=tools_${SDK_VERSION}-linux.zip @@ -38,12 +38,12 @@ else fi # make sure we have the required commands installed -MISSING="" +MISSING= for i in git cmake autoconf libtool java ant wget unzip; do command -v $i >/dev/null || - if [ "$i" = "libtool" ] ; then + if [ $i = libtool ] ; then MISSING="${MISSING}libtool-bin " - elif [ "$i" = "java" ] ; then + elif [ $i = java ] ; then MISSING="${MISSING}openjdk-8-jdk " else MISSING="${MISSING}${i} " @@ -112,7 +112,7 @@ popd # and now we need a monotonic build number... -if [ ! -f "./buildnr.dat" ] ; then +if [ ! -f ./buildnr.dat ] ; then BUILDNR=0 else BUILDNR=$(cat ./buildnr.dat) @@ -122,7 +122,7 @@ echo "${BUILDNR}" > ./buildnr.dat echo "Building Subsurface-mobile ${VERSION} for Android, build nr ${BUILDNR} as Subsurface-mobile-$VERSION-${NAME}arm.apk" -if [ "$1" = "release" ] || [ "$1" = "Release" ] || [ "$1" = "debug" ] || [ "$1" = "Debug" ] ; then +if [ "$1" = release ] || [ "$1" = Release ] || [ "$1" = debug ] || [ "$1" = Debug ] ; then RELEASE=$1 shift else |