aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-11-15 14:12:25 +0000
committerMattia Rizzolo <mattia@mapreri.org>2015-11-15 14:13:08 +0000
commit5d4be711e4fd1ac2a06b3a7f8184b16b611d6399 (patch)
tree7201a525917cade4a2d14a8468ba959cc805bb70
parentc71465e4fe031a2b09d0d0034c88358a7313b175 (diff)
downloadpbuilder-5d4be711e4fd1ac2a06b3a7f8184b16b611d6399.tar
pbuilder-5d4be711e4fd1ac2a06b3a7f8184b16b611d6399.tar.gz
pbuilder: add an (undocumented) --help operation. Exit 0 if the help was requested
-rwxr-xr-xpbuilder6
-rwxr-xr-xpbuilder-checkparams1
-rw-r--r--pbuilder-modules1
3 files changed, 7 insertions, 1 deletions
diff --git a/pbuilder b/pbuilder
index 63cc7a9..71d6962 100755
--- a/pbuilder
+++ b/pbuilder
@@ -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