1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

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>
This commit is contained in:
Andrew Fyfe 2007-04-11 21:30:48 +01:00 committed by Dan McGee
parent a2d018a954
commit ab53ee1e7c
3 changed files with 22 additions and 4 deletions

View File

@ -220,6 +220,7 @@ scripts/Makefile
scripts/abs
scripts/gensync
scripts/makepkg
scripts/makeworld
doc/Makefile
etc/Makefile
etc/makepkg.conf

View File

@ -16,7 +16,7 @@ bin_SCRIPTS = \
EXTRA_DIST = abs.in \
gensync.in \
makepkg.in \
makeworld \
makeworld.in \
pacman-optimize \
rankmirrors \
repo-add \

View File

@ -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