From: Hans-Peter Nilsson Date: Wed, 22 Nov 2023 17:18:19 +0000 (+0100) Subject: contrib/regression/btest-gcc.sh: Simplify option handling. X-Git-Tag: basepoints/gcc-15~4335 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=071dadb728d0ed712af26f81fbe470b266a55607;p=thirdparty%2Fgcc.git contrib/regression/btest-gcc.sh: Simplify option handling. * btest-gcc.sh (Option handling): Break out shifts from each option alternative. --- diff --git a/contrib/regression/btest-gcc.sh b/contrib/regression/btest-gcc.sh index 22e8f0398662..3c031e93709b 100755 --- a/contrib/regression/btest-gcc.sh +++ b/contrib/regression/btest-gcc.sh @@ -32,12 +32,13 @@ dashj='' while : ; do case "$1" in --add-passes-despite-regression) - add_passes_despite_regression=1; shift;; + add_passes_despite_regression=1;; -j*) - dashj=$1; shift;; + dashj=$1;; -*) echo "Invalid option: $1"; exit 2;; *) break;; esac + shift done # TARGET is the target triplet. It should be the same one as used in