mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-23 00:20:52 -05:00
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>
This commit is contained in:
parent
75eee921a1
commit
8b99521f9a
1 changed files with 5 additions and 1 deletions
|
@ -83,7 +83,7 @@ do
|
||||||
echo "Cannot create directory --destdir '$LKMM_DESTDIR'"
|
echo "Cannot create directory --destdir '$LKMM_DESTDIR'"
|
||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
if test -d "$LKMM_DESTDIR" -a -w "$LKMM_DESTDIR" -a -x "$LKMM_DESTDIR"
|
if test -d "$LKMM_DESTDIR" -a -x "$LKMM_DESTDIR"
|
||||||
then
|
then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
|
@ -127,6 +127,10 @@ do
|
||||||
LKMM_TIMEOUT="$2"
|
LKMM_TIMEOUT="$2"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--)
|
||||||
|
shift
|
||||||
|
break
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo Unknown argument $1
|
echo Unknown argument $1
|
||||||
usage
|
usage
|
||||||
|
|
Loading…
Reference in a new issue