Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAndrew Fyfe <andrew@neptune-one.net>2007-04-11 21:30:48 +0100
committerDan McGee <dan@archlinux.org>2007-05-27 17:16:27 -0400
commitab53ee1e7c832453392c87c7f07961826ff9f16e (patch)
treec88e449c797c544b6ea41af77cdb8dfbb4778dff /scripts
parenta2d018a954e36485036d707fa484ee20e0045186 (diff)
autotool scripts/makeworld
- move scripts/makeworld to scripts/makeworld.in - add -V --version options to scripts/makeworld.in - add autotool commands to generate scripts/makeworld Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.am2
-rwxr-xr-xscripts/makeworld.in (renamed from scripts/makeworld)23
2 files changed, 21 insertions, 4 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 0c6a06fb..9d67270a 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -16,7 +16,7 @@ bin_SCRIPTS = \
EXTRA_DIST = abs.in \
gensync.in \
makepkg.in \
- makeworld \
+ makeworld.in \
pacman-optimize \
rankmirrors \
repo-add \
diff --git a/scripts/makeworld b/scripts/makeworld.in
index b9d318c6..acbd2830 100755
--- a/scripts/makeworld
+++ b/scripts/makeworld.in
@@ -2,7 +2,7 @@
#
# makeworld
#
-# Copyright (c) 2002-2006 by Judd Vinet <jvinet@zeroflux.org>
+# Copyright (c) 2002-2007 by Judd Vinet <jvinet@zeroflux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@
# USA.
#
-version="3.0.0"
+version="@PACKAGE_VERSION@"
toplevel=$(pwd)
usage() {
@@ -53,6 +53,15 @@ usage() {
echo "This should be run from the toplevel directory of ABS (usually /var/abs)"
}
+version() {
+ printf "makeworld (pacman) %s\n" "$version"
+ printf "Copyright (C) 2002-2007 Judd Vinet <jvinet@zeroflux.org>.\n"
+ echo
+ printf "This is free software; see the source for copying conditions.\n"
+ printf "There is NO WARRANTY, to the extent permitted by the law.\n"
+ echo
+}
+
if [ $# -lt 2 ]; then
usage
exit 1
@@ -82,12 +91,16 @@ for arg in $*; do
usage
exit 0
;;
+ --version)
+ version
+ exit 0
+ ;;
--*)
usage
exit 1
;;
-*)
- while getopts "chisSbdfrBCemoS-" opt; do
+ while getopts "chisSbdfrBCemoSV-" opt; do
case $opt in
c) MAKEPKG_OPTS="$MAKEPKG_OPTS -c" ;;
i) MAKEPKG_OPTS="$MAKEPKG_OPTS -i" ;;
@@ -106,6 +119,10 @@ for arg in $*; do
usage
exit 0
;;
+ V)
+ version
+ exit 0
+ ;;
-)
OPTIND=0
break