mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-14 20:18:39 +00:00
contrib/rpm: add "--no-auto-with-test" option for "build_clean.sh" script
By default, "build_clean.sh" script likes to automatically add "-w test" -- unless the user specified "-w test" or "-W test" on the command line. That is mostly fine. However, the spec file has an internal default for the "test" option. So if you want to use the default that gets determined by the spec file, then we should suppress that automatism.
This commit is contained in:
parent
a8ead4a4c3
commit
3bf367594a
|
@ -107,6 +107,14 @@ while [[ $# -gt 0 ]]; do
|
|||
fi
|
||||
shift
|
||||
;;
|
||||
--no-auto-with-test)
|
||||
# by default, the script adds "-w test" (unless the command line contains
|
||||
# "-w test" or "-W test"). This flags allows to suppress that automatism.
|
||||
# It's really only useful to test the spec file's internal default for the
|
||||
# "test" option. Otherwise, you can always just explicitly select "-w test"
|
||||
# or "-W test".
|
||||
ADD_WITH_TEST=0
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
die "Unexpected argument \"$A\""
|
||||
|
|
Loading…
Reference in a new issue