summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-11-10 22:47:50 +0100
committerGuido Günther <agx@sigxcpu.org>2017-11-10 23:02:00 +0100
commit876ebb35af7be82e0878d4d698984b82fb095391 (patch)
treea9a20b4f33597f1de16773f7da62c0786848ca04
parent3c49bf468ebfa988a38bd39da9c554ae32a186fa (diff)
git-pbuilder: handle --help
Closes: #734862
-rwxr-xr-xbin/git-pbuilder19
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/git-pbuilder b/bin/git-pbuilder
index 57e4cfe2..bc4119d7 100755
--- a/bin/git-pbuilder
+++ b/bin/git-pbuilder
@@ -43,6 +43,25 @@ unset_env() {
export -n DIST BUILDER ARCH
}
+case $1 in
+ -h|--help|-?)
+ cat <<EOF
+git-pbuilder - Wrapper around cowbuilder/qemubuilder for gbp buildpackage
+
+Usage
+
+ DIST=distribution ARCH=architecture [BUILDER=(pbuilder|qemubuilder)] \
+ git-pbuilder debbuild-options
+
+ DIST=distribution ARCH=architecture [BUILDER=(pbuilder|qemubuilder)] \
+ git-pbuilder (update | create | login) cowbuilder-options
+
+See git-pbuilder(1) for details.
+EOF
+ exit 0
+ ;;
+esac
+
# Set default BUILDER, DIST, and ARCH based on the name we were invoked as.
# This allows people to create symlinks like git-pbuilder-squeeze and
# git-qemubuilder-squeeze-amd64 pointing to git-pbuilder and auto-detecting