From 15825d0a4b2a4859eeccab1411803075f3069732 Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Wed, 7 Nov 2012 21:26:51 +0100 Subject: [PATCH] spec-create: new option '--changelog' Signed-off-by: Davide Madrisan --- ChangeLog | 13 +++++++++++++ plugins/spec-create.in | 12 +++++++++--- po/it/spec-create.po | 9 +++++++++ 3 files changed, 31 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ef5a93a..6954a57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +Changes in version 1.14.1 - _TO*Hacklab release +Fri Nov 09 2012 Davide Madrisan + ++ improvement + * plugins/spec-create - Davide Madrisan: + New option '--changeglog'. + ++ update + * po/it/spec-create - Davide Madrisan: + Updated. + +------------------------------------------------------------------------------- + Changes in version 1.14.0 Thu Nov 01 2012 Davide Madrisan diff --git a/plugins/spec-create.in b/plugins/spec-create.in index 052de3a..4ffc813 100644 --- a/plugins/spec-create.in +++ b/plugins/spec-create.in @@ -95,7 +95,8 @@ function usage() { "$"Try to create a specfile for the specified source archive"". "$"Usage"": - @frontend@ -s [-n ] [-v ] [-t ] [-o ] + @frontend@ -s [-n ] [-v ] [-t ] \\ + [-o ] [--changelog \""$"message""\"] [<"$"git-opts"">] "$"where the above options mean"": -s, --source "$"Try to create a specfile for the specified source archive"" @@ -111,6 +112,7 @@ function usage() { python : "$"specfile for python modules"" standard-daemon : "$"standard specfile for system/network services"" -o, --output "$"Redirect the output to the file "" + --changelog "$"Set change information for the package"" --git-branch "$"Specify a git branch"" --preserve-dot-git "$"Do not remove git files"" @@ -124,6 +126,7 @@ function usage() { "$"Samples"": @frontend@ -s ~/software/@package@-@version@.tar.bz2 -t standard -o @package@.spec @frontend@ -s http://ftp.qilinux.it/devel/tools/@package@/@package@-@version@.tar.bz2 + @frontend@ -s @package@-@version@.tar.bz2 --changelog \"First build\" @frontend@ -s git://anongit.freedesktop.org/gstreamer/gst-omx \\ --git-branch=\"raspberry\" --preserve-dot-git -o gst-omx.spec @@ -157,7 +160,8 @@ config.check4user exec_options=`LC_ALL=C getopt \ -o s:n:v:t:o:DqrhV \ --long \ -source:,pck-name:,pck-version:,type:,output:,git-branch:,preserve-dot-git,\ +source:,pck-name:,pck-version:,type:,output:,changelog:,\ +git-branch:,preserve-dot-git,\ debug,quiet,colorize,help,version,\ frontend_opts: \ -n "$me" -- "$@"` @@ -181,6 +185,8 @@ while :; do spec_type=$2; shift ;; -o|--output) outfile=$2; shift ;; + --changelog) + spec_changelog_comment="$2"; shift ;; --git-branch) git_branch=$2; shift ;; --preserve-dot-git) @@ -484,7 +490,7 @@ function specfile.create() { local pck_name pck_version case "$2" in - git://*|http://*.git|https://*.git) + git://*|http://*.git|https://*.git) git.create_tarball \ --git-branch="$git_branch" \ --preserve-dot-git="$preserve_dot_git" \ diff --git a/po/it/spec-create.po b/po/it/spec-create.po index d32e4c2..1c14266 100644 --- a/po/it/spec-create.po +++ b/po/it/spec-create.po @@ -37,6 +37,12 @@ msgstr "Cerca di creare uno specfile per l'archivio sorgente indicato" msgid "Usage" msgstr "Utilizzo" +msgid "message" +msgstr "messaggio" + +msgid "git-opts" +msgstr "opzioni-git" + msgid "where the above options mean" msgstr "dove le precedenti opzioni significano" @@ -103,6 +109,9 @@ msgstr "Attiva la modalità di debugging (output prolisso)" msgid "Samples" msgstr "Alcuni esempi" +msgid "Set change information for the package" +msgstr "Scrive il messaggio indicato nel changelog del pacchetto" + msgid "Report bugs to ." msgstr "Segnalare eventuali bug a ."