Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/makepkg.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/makepkg.in')
-rw-r--r--scripts/makepkg.in27
1 files changed, 22 insertions, 5 deletions
diff --git a/scripts/makepkg.in b/scripts/makepkg.in
index 0d147041..2884e5db 100644
--- a/scripts/makepkg.in
+++ b/scripts/makepkg.in
@@ -600,7 +600,7 @@ installpackage() {
}
usage() {
- printf "$(gettext "makepkg version %s")\n" "$myver"
+ printf "$(gettext "makepkg (pacman) %s")\n" "$myver"
echo
printf "$(gettext "Usage: %s [options]")\n" "$0"
echo
@@ -633,6 +633,15 @@ usage() {
echo
}
+version() {
+ printf "$(gettext "makepkg (pacman) %s")\n" "$myver"
+ echo "$(gettext "Copyright (C) 2002-2007 Judd Vinet <jvinet@zeroflux.org>.")"
+ echo
+ echo "$(gettext "This is free software; see the source for copying conditions.")"
+ echo "$(gettext "There is NO WARRANTY, to the extent permitted by law.")"
+ echo
+}
+
ARGLIST=$@
#preserve environment variables
@@ -684,6 +693,10 @@ while [ "$#" -ne "0" ]; do
usage
exit 0
;;
+ --version)
+ version
+ exit 0
+ ;;
--*)
usage
exit 1
@@ -699,10 +712,6 @@ while [ "$#" -ne "0" ]; do
f) FORCE=1 ;;
F) INFAKEROOT=1 ;;
g) GENINTEG=1 ;;
- h)
- usage
- exit 0
- ;;
i) INSTALL=1 ;;
L) LOGGING=1 ;;
m) USE_COLOR="n" ;;
@@ -712,6 +721,14 @@ while [ "$#" -ne "0" ]; do
R) REPKG=1 ;;
s) DEP_BIN=1 ;;
S) SUDO=1 ;;
+ h)
+ usage
+ exit 0
+ ;;
+ V)
+ version
+ exit 0
+ ;;
-)
OPTIND=0
break