Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/memory-model: Add "--" to parseargs.sh for additional arguments

Currently, parseargs.sh expects to consume all the command-line arguments,
which prevents the calling script from having any of its own arguments.
This commit therefore causes parseargs.sh to stop consuming arguments
when it encounters a "--" argument, leaving any remaining arguments for
the calling script.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>

+5 -1
+5 -1
tools/memory-model/scripts/parseargs.sh
··· 83 83 echo "Cannot create directory --destdir '$LKMM_DESTDIR'" 84 84 usage 85 85 fi 86 - if test -d "$LKMM_DESTDIR" -a -w "$LKMM_DESTDIR" -a -x "$LKMM_DESTDIR" 86 + if test -d "$LKMM_DESTDIR" -a -x "$LKMM_DESTDIR" 87 87 then 88 88 : 89 89 else ··· 126 126 checkarg --timeout "(timeout spec)" "$#" "$2" '^\([0-9]\+[smhd]\?\|\)$' '^--' 127 127 LKMM_TIMEOUT="$2" 128 128 shift 129 + ;; 130 + --) 131 + shift 132 + break 129 133 ;; 130 134 *) 131 135 echo Unknown argument $1