[pacman-dev] [PATCH 2/2] Add -V/--version option to makepkg's usage function and man page

Eric Bélanger snowmaniscool at gmail.com
Sun Apr 28 21:49:01 EDT 2013


Signed-off-by: Eric Bélanger <snowmaniscool at gmail.com>
---
 doc/makepkg.8.txt     | 3 +++
 scripts/makepkg.sh.in | 1 +
 2 files changed, 4 insertions(+)

diff --git a/doc/makepkg.8.txt b/doc/makepkg.8.txt
index ecee63a..bb7a9a3 100644
--- a/doc/makepkg.8.txt
+++ b/doc/makepkg.8.txt
@@ -144,6 +144,9 @@ Options
 	remote builder, or a tarball upload. Because integrity checks are verified,
 	all source files of the package need to be present or downloadable.
 
+*-V, \--version*::
+	Display version information.
+
 *\--allsource*::
 	Do not actually build the package, but build a source-only tarball that
 	includes all sources, including those that are normally download via
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index da620a4..710b76b 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -2475,6 +2475,7 @@ usage() {
 	printf -- "$(gettext "  -R, --repackage  Repackage contents of the package without rebuilding")\n"
 	printf -- "$(gettext "  -s, --syncdeps   Install missing dependencies with %s")\n" "pacman"
 	printf -- "$(gettext "  -S, --source     Generate a source-only tarball without downloaded sources")\n"
+	printf -- "$(gettext "  -V, --version    Show version information and exit")\n"
 	printf -- "$(gettext "  --allsource      Generate a source-only tarball including downloaded sources")\n"
 	printf -- "$(gettext "  --verifysource   Download source files (if needed) and perform integrity checks")\n"
 	printf -- "$(gettext "  --asroot         Allow %s to run as root user")\n" "makepkg"
-- 
1.8.2.2



More information about the pacman-dev mailing list