From b7f261c0fe3fbf37ea9dda568d6f1f8e66cdd8df Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Tue, 22 Oct 2013 01:56:28 +0200 Subject: [PATCH] spec-create: new options '--packager-fullname' and '--packager-email' --- plugins/spec-create.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/spec-create.in b/plugins/spec-create.in index 72cc7ed..ebf7c35 100644 --- a/plugins/spec-create.in +++ b/plugins/spec-create.in @@ -94,6 +94,7 @@ function usage() { "$"Usage"": @frontend@ -s [-n ] [-v ] [-t ] \\ [-o ] [--changelog \""$"message""\"] [<"$"git-opts"">] \\ + [--packager-fullname \"Full Name\" ] [--packager-email \"email@domain\" ] \\ [-C ] "$"where the above options mean"": @@ -113,6 +114,10 @@ function usage() { web : "$"specfile for web packages"" -o, --output "$"Redirect the output to the file "" --changelog "$"Set change information for the package"" + --packager-fullname + "$"Override packager full name"" + --packager-email + "$"Override packager email"" --git-branch "$"Specify a git branch"" --preserve-dot-git "$"Do not remove git files"" --colors "$"Select the theme to be used for the colorized output"" @@ -164,6 +169,7 @@ exec_options=`LC_ALL=C getopt \ -o s:n:v:t:o:C:DqrhV \ --long \ source:,pck-name:,pck-version:,type:,output:,changelog:,\ +packager-fullname:,packager-email:,\ git-branch:,preserve-dot-git,\ colors:,config:,debug,quiet,help,version,\ frontend_opts: \ @@ -192,6 +198,12 @@ while :; do outfile=$2; shift ;; --changelog) spec_changelog_comment="$2"; shift ;; + --packager-fullname) + packager_fullname="$2"; shift + cmdline_vars[${#cmdline_vars[*]}]="packager_fullname=\"$packager_fullname\"" ;; + --packager-email) + packager_email="$2"; shift + cmdline_vars[${#cmdline_vars[*]}]="packager_email=\"$packager_email\"" ;; --git-branch) git_branch=$2; shift ;; --preserve-dot-git)