Fixed build script parsing arguments.

This commit is contained in:
Axel 2020-10-01 16:35:12 +02:00 committed by Axel1092
parent c62070bbdd
commit 6f4e69da4c
6 changed files with 9 additions and 8 deletions

View File

@ -32,7 +32,7 @@ OPTS=`getopt -o h --long help,build,rebuild,launch,clean,hard-clean,gdb,opengl -
eval set -- "$OPTS"
while true; do
while [[ $# -gt 0 ]]; do
case "$1" in
--gdb )
GDB="gdb --args";

View File

@ -45,7 +45,7 @@ OPTS=`getopt -o h --long help,rebuild,server,client,clean,debug,release,rss -n '
eval set -- "$OPTS"
while true; do
while [[ $# -gt 0 ]]; do
case "$1" in
--rebuild )
REMOVE_INTERMEDIATE=true;

View File

@ -26,8 +26,8 @@ OPTS=`getopt -o h --long help,rebuild,build,clean -n 'parse-options' -- "$@"`
eval set -- "$OPTS"
while true; do
case $1 in
while [[ $# -gt 0 ]]; do
case "$1" in
--rebuild )
REMOVE_INTERMEDIATE=true;
BUILD_OSM2ODR=true;
@ -44,6 +44,7 @@ while true; do
exit 1
;;
* )
log "Here22. $1"
shift ;;
esac
done

View File

@ -25,7 +25,7 @@ OPTS=`getopt -o h --long help,replace-latest,docker-push,dry-run -n 'parse-optio
eval set -- "$OPTS"
while true; do
while [[ $# -gt 0 ]]; do
case "$1" in
--replace-latest )
REPLACE_LATEST=true;

View File

@ -8,7 +8,7 @@ USAGE_STRING="Usage: $0 [-h|--help] [--release]"
RELEASE=false
while true; do
while [[ $# -gt 0 ]]; do
case "$1" in
--release )
RELEASE=true
@ -19,7 +19,7 @@ while true; do
exit 1
;;
* )
break ;;
shift ;;
esac
done

View File

@ -21,7 +21,7 @@ OPTS=`getopt -o hf: --long help,all,file: -n 'parse-options' -- "$@"`
eval set -- "$OPTS"
while true; do
while [[ $# -gt 0 ]]; do
case "$1" in
--all )
PRETTIFY_ALL=true;