mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-04-23 00:01:10 +00:00
Exit 0 when showing help, and support -h.
This commit is contained in:
parent
dfc7a2ce26
commit
ebe04d88b0
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -3,6 +3,7 @@ ubuntu-dev-tools (0.123) UNRELEASED; urgency=low
|
||||
* mk-sbuild:
|
||||
- Disable daemons with a policy-rc.d script (like pbuilder does)
|
||||
- Move package installation after option parsing.
|
||||
- Exit 0 when showing help, and support -h.
|
||||
|
||||
-- Stefano Rivera <stefanor@debian.org> Sun, 24 Apr 2011 12:45:31 +0200
|
||||
|
||||
|
11
mk-sbuild
11
mk-sbuild
@ -70,14 +70,17 @@ function usage()
|
||||
echo " DEBOOTSTRAP_EXCLUDE Excluded packages (same as --debootstrap-exclude)"
|
||||
echo " TEMPLATE_SOURCES A template for sources.list"
|
||||
echo " TEMPLATE_SCHROOTCONF A template for schroot.conf stanza"
|
||||
exit 1
|
||||
if [ -z "$1" ]; then
|
||||
exit 1
|
||||
fi
|
||||
exit $1
|
||||
}
|
||||
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
usage
|
||||
fi
|
||||
OPTS=`getopt -o '' --long "help,debug,skip-updates,arch:,name:,source-template:,debootstrap-mirror:,debootstrap-include:,debootstrap-exclude:,personality:,distro:,vg:,type:" -- "$@"`
|
||||
OPTS=`getopt -o 'h' --long "help,debug,skip-updates,arch:,name:,source-template:,debootstrap-mirror:,debootstrap-include:,debootstrap-exclude:,personality:,distro:,vg:,type:" -- "$@"`
|
||||
eval set -- "$OPTS"
|
||||
|
||||
VG=""
|
||||
@ -145,8 +148,8 @@ while :; do
|
||||
shift
|
||||
break
|
||||
;;
|
||||
--help|*)
|
||||
usage
|
||||
-h|--help|*)
|
||||
usage 0
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
@ -32,7 +32,6 @@ BLACKLIST = {
|
||||
'grep-merges': 'No Help',
|
||||
'lp-project-upload': 'Returns non-zero after help. '
|
||||
'Leaving u-d-t in LP: #524680',
|
||||
'mk-sbuild': 'Fires up apt-get before showing help',
|
||||
'pbuilder-dist-simple': 'No Help',
|
||||
'setup-packaging-environment': 'Throws Error',
|
||||
'submittodebian': 'No Help',
|
||||
|
Loading…
x
Reference in New Issue
Block a user