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:
parent
a2d018a954
commit
ab53ee1e7c
3 changed files with 22 additions and 4 deletions
|
@ -220,6 +220,7 @@ scripts/Makefile
|
||||||
scripts/abs
|
scripts/abs
|
||||||
scripts/gensync
|
scripts/gensync
|
||||||
scripts/makepkg
|
scripts/makepkg
|
||||||
|
scripts/makeworld
|
||||||
doc/Makefile
|
doc/Makefile
|
||||||
etc/Makefile
|
etc/Makefile
|
||||||
etc/makepkg.conf
|
etc/makepkg.conf
|
||||||
|
|
|
@ -16,7 +16,7 @@ bin_SCRIPTS = \
|
||||||
EXTRA_DIST = abs.in \
|
EXTRA_DIST = abs.in \
|
||||||
gensync.in \
|
gensync.in \
|
||||||
makepkg.in \
|
makepkg.in \
|
||||||
makeworld \
|
makeworld.in \
|
||||||
pacman-optimize \
|
pacman-optimize \
|
||||||
rankmirrors \
|
rankmirrors \
|
||||||
repo-add \
|
repo-add \
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#
|
#
|
||||||
# makeworld
|
# 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
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
# USA.
|
# USA.
|
||||||
#
|
#
|
||||||
|
|
||||||
version="3.0.0"
|
version="@PACKAGE_VERSION@"
|
||||||
toplevel=$(pwd)
|
toplevel=$(pwd)
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
|
@ -53,6 +53,15 @@ usage() {
|
||||||
echo "This should be run from the toplevel directory of ABS (usually /var/abs)"
|
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
|
if [ $# -lt 2 ]; then
|
||||||
usage
|
usage
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -82,12 +91,16 @@ for arg in $*; do
|
||||||
usage
|
usage
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
--version)
|
||||||
|
version
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
--*)
|
--*)
|
||||||
usage
|
usage
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
-*)
|
-*)
|
||||||
while getopts "chisSbdfrBCemoS-" opt; do
|
while getopts "chisSbdfrBCemoSV-" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
c) MAKEPKG_OPTS="$MAKEPKG_OPTS -c" ;;
|
c) MAKEPKG_OPTS="$MAKEPKG_OPTS -c" ;;
|
||||||
i) MAKEPKG_OPTS="$MAKEPKG_OPTS -i" ;;
|
i) MAKEPKG_OPTS="$MAKEPKG_OPTS -i" ;;
|
||||||
|
@ -106,6 +119,10 @@ for arg in $*; do
|
||||||
usage
|
usage
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
V)
|
||||||
|
version
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
-)
|
-)
|
||||||
OPTIND=0
|
OPTIND=0
|
||||||
break
|
break
|
Loading…
Add table
Reference in a new issue