spec-create: new options '--packager-fullname' and '--packager-email'

This commit is contained in:
Silvan Calarco 2013-10-22 01:56:28 +02:00 committed by Davide Madrisan
parent 291f42297b
commit 38ccd4e178

View File

@ -94,6 +94,7 @@ function usage() {
"$"Usage"": "$"Usage"":
@frontend@ -s <source-archive> [-n <name>] [-v <ver>] [-t <type>] \\ @frontend@ -s <source-archive> [-n <name>] [-v <ver>] [-t <type>] \\
[-o <outfile>] [--changelog \""$"message""\"] [<"$"git-opts"">] \\ [-o <outfile>] [--changelog \""$"message""\"] [<"$"git-opts"">] \\
[--packager-fullname \"Full Name\" ] [--packager-email \"email@domain\" ] \\
[-C <conf_file>] [-C <conf_file>]
"$"where the above options mean"": "$"where the above options mean"":
@ -113,6 +114,10 @@ function usage() {
web : "$"specfile for web packages"" web : "$"specfile for web packages""
-o, --output "$"Redirect the output to the file <outfile>"" -o, --output "$"Redirect the output to the file <outfile>""
--changelog "$"Set change information for the package"" --changelog "$"Set change information for the package""
--packager-fullname
"$"Override packager full name""
--packager-email
"$"Override packager email""
--git-branch "$"Specify a git branch"" --git-branch "$"Specify a git branch""
--preserve-dot-git "$"Do not remove git files"" --preserve-dot-git "$"Do not remove git files""
--colors "$"Select the theme to be used for the colorized output"" --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 \ -o s:n:v:t:o:C:DqrhV \
--long \ --long \
source:,pck-name:,pck-version:,type:,output:,changelog:,\ source:,pck-name:,pck-version:,type:,output:,changelog:,\
packager-fullname:,packager-email:,\
git-branch:,preserve-dot-git,\ git-branch:,preserve-dot-git,\
colors:,config:,debug,quiet,help,version,\ colors:,config:,debug,quiet,help,version,\
frontend_opts: \ frontend_opts: \
@ -192,6 +198,12 @@ while :; do
outfile=$2; shift ;; outfile=$2; shift ;;
--changelog) --changelog)
spec_changelog_comment="$2"; shift ;; 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)
git_branch=$2; shift ;; git_branch=$2; shift ;;
--preserve-dot-git) --preserve-dot-git)