Build scripts accept any option and only use those that are needed.

This commit is contained in:
Axel 2020-09-30 16:57:53 +02:00 committed by Axel1092
parent 0c97e9a5de
commit 247c27e6af
10 changed files with 6 additions and 26 deletions

View File

@ -30,8 +30,6 @@ RHI="-vulkan"
OPTS=`getopt -o h --long help,build,rebuild,launch,clean,hard-clean,gdb,opengl -n 'parse-options' -- "$@"`
if [ $? != 0 ] ; then echo "$USAGE_STRING" ; exit 2 ; fi
eval set -- "$OPTS"
while true; do
@ -65,7 +63,7 @@ while true; do
exit 1
;;
* )
break ;;
shift ;;
esac
done

View File

@ -43,8 +43,6 @@ BUILD_RSS_VARIANT=false
OPTS=`getopt -o h --long help,rebuild,server,client,clean,debug,release,rss -n 'parse-options' -- "$@"`
if [ $? != 0 ] ; then echo "$USAGE_STRING" ; exit 2 ; fi
eval set -- "$OPTS"
while true; do
@ -81,7 +79,7 @@ while true; do
exit 1
;;
* )
break ;;
shift ;;
esac
done

View File

@ -24,8 +24,6 @@ BUILD_OSM2ODR=false
OPTS=`getopt -o h --long help,rebuild,build,clean -n 'parse-options' -- "$@"`
if [ $? != 0 ] ; then echo "$USAGE_STRING" ; exit 2 ; fi
eval set -- "$OPTS"
while true; do
@ -46,7 +44,7 @@ while true; do
exit 1
;;
* )
break ;;
shift ;;
esac
done

View File

@ -19,8 +19,6 @@ BUILD_PYTHONAPI=true
OPTS=`getopt -o h --long help,rebuild,clean,rss,python-version:,packages:,clean-intermediate,all,xml, -n 'parse-options' -- "$@"`
if [ $? != 0 ] ; then echo "$USAGE_STRING" ; exit 2 ; fi
eval set -- "$OPTS"
PY_VERSION=3

View File

@ -40,8 +40,6 @@ RUN_BENCHMARK=false
OPTS=`getopt -o h --long help,gdb,xml,gtest_args:,all,libcarla-release,libcarla-debug,python-api,smoke,benchmark,python-version:, -n 'parse-options' -- "$@"`
if [ $? != 0 ] ; then echo "$USAGE_STRING" ; exit 2 ; fi
eval set -- "$OPTS"
PY_VERSION=3

View File

@ -23,8 +23,6 @@ USAGE_STRING="Usage: $0 [-h|--help] [--replace-latest] [--docker-push] [--dry-ru
OPTS=`getopt -o h --long help,replace-latest,docker-push,dry-run -n 'parse-options' -- "$@"`
if [ $? != 0 ] ; then echo "$USAGE_STRING" ; exit 2 ; fi
eval set -- "$OPTS"
while true; do
@ -46,7 +44,7 @@ while true; do
exit 1
;;
* )
break ;;
shift ;;
esac
done

View File

@ -18,8 +18,6 @@ PACKAGE_CONFIG=Shipping
OPTS=`getopt -o h --long help,config:,no-zip,clean-intermediate,packages:,python-version: -n 'parse-options' -- "$@"`
if [ $? != 0 ] ; then echo "$USAGE_STRING" ; exit 2 ; fi
eval set -- "$OPTS"
while [[ $# -gt 0 ]]; do

View File

@ -8,8 +8,6 @@ USAGE_STRING="Usage: $0 [-h|--help] [--release]"
RELEASE=false
if [ $? != 0 ] ; then echo "$USAGE_STRING" ; exit 2 ; fi
while true; do
case "$1" in
--release )

View File

@ -19,8 +19,6 @@ PRETTIFY_FILE=false
OPTS=`getopt -o hf: --long help,all,file: -n 'parse-options' -- "$@"`
if [ $? != 0 ] ; then echo "$USAGE_STRING" ; exit 2 ; fi
eval set -- "$OPTS"
while true; do
@ -37,7 +35,7 @@ while true; do
exit 1
;;
* )
break ;;
shift ;;
esac
done

View File

@ -8,9 +8,7 @@ DOC_STRING="Download and install the required libraries for carla."
USAGE_STRING="Usage: $0 [--python-version=VERSION]"
OPTS=`getopt -o h --long help,rebuild,clean,rss,python-version:,packages:,clean-intermediate,all,xml -n 'parse-options' -- "$@"`
if [ $? != 0 ] ; then echo "$USAGE_STRING" ; exit 2 ; fi
OPTS=`getopt -o h --long help,python-version: -n 'parse-options' -- "$@"`
eval set -- "$OPTS"