From caacce57189782ef30e853b6deccf387fdb68f10 Mon Sep 17 00:00:00 2001 From: "G.raud" Date: Sat, 9 Dec 2017 20:41:59 +0100 Subject: [PATCH] dsc2git: --help: new option printing a HelpMessage help_message(): new function. --- dsc2git | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/dsc2git b/dsc2git index ced1122..fcf6828 100755 --- a/dsc2git +++ b/dsc2git @@ -14,6 +14,32 @@ # You should have received a copy of the GNU General Public License along # with this program. If not, see . +help_message () { + cat <<"HelpMessage" +NAME + dsc2git - wrapper around archives2git to process debian source packages +SYNOPSIS + dsc2git [] +DESCRIPTION + dsc2git passes the --unpack option to archives2git so that it unpacks + Debian source packages. +OPTIONS + --help, --helpm +SEE ALSO + archives2git(1) +HelpMessage +} + +# options parsing +while [ $# -gt 0 ] +do + case $1 in + --help|--helpm) help_message; exit ;; + *) break ;; + esac + shift +done + exec archives2git \ --unpack '( archcd=$(pwd -P)/ -- 2.11.4.GIT