diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-11-15 14:12:25 +0000 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2015-11-15 14:13:08 +0000 |
commit | 5d4be711e4fd1ac2a06b3a7f8184b16b611d6399 (patch) | |
tree | 7201a525917cade4a2d14a8468ba959cc805bb70 | |
parent | c71465e4fe031a2b09d0d0034c88358a7313b175 (diff) | |
download | pbuilder-5d4be711e4fd1ac2a06b3a7f8184b16b611d6399.tar pbuilder-5d4be711e4fd1ac2a06b3a7f8184b16b611d6399.tar.gz |
pbuilder: add an (undocumented) --help operation. Exit 0 if the help was requested
-rwxr-xr-x | pbuilder | 6 | ||||
-rwxr-xr-x | pbuilder-checkparams | 1 | ||||
-rw-r--r-- | pbuilder-modules | 1 |
3 files changed, 7 insertions, 1 deletions
@@ -158,9 +158,15 @@ File extracted to: $BUILDPLACE shift "$0" execute "$@" /usr/lib/pbuilder/pdebuild-internal ;; + --help|help) + . /usr/lib/pbuilder/pbuilder-modules + showhelp + exit 0 + ;; *) . /usr/lib/pbuilder/pbuilder-modules showhelp + exit 1 ;; esac diff --git a/pbuilder-checkparams b/pbuilder-checkparams index 688da07..a9cc3fb 100755 --- a/pbuilder-checkparams +++ b/pbuilder-checkparams @@ -189,6 +189,7 @@ while [ -n "$1" ]; do ;; --help) showhelp + exit 0 ;; --override-config) OVERRIDE_APTLINES="yes" diff --git a/pbuilder-modules b/pbuilder-modules index 0e7a77f..d842687 100644 --- a/pbuilder-modules +++ b/pbuilder-modules @@ -80,7 +80,6 @@ pdebuild-specific pbuilder options: For the full documentation see the manual pages pbuilder(8) and pbuilderrc(5). EOF - exit 1 } # Log a message |