mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 22:23:24 +00:00
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>
This commit is contained in:
parent
9470278e87
commit
1c33951ce6
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue