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

autotool scripts/pacman-optimize

- move scripts/pacman-optimize -> scripts/pacman-optimize.in
	- add -V --version options to scripts/pacman-optimize.in
	- add autotool commands to generate scripts/pacman-optimize

Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
This commit is contained in:
Andrew Fyfe 2007-04-11 21:40:33 +01:00 committed by Dan McGee
parent ab53ee1e7c
commit 95720106bb
3 changed files with 17 additions and 3 deletions

View File

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

View File

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

View File

@ -2,7 +2,7 @@
#
# pacman-optimize
#
# 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.
#
myver='3.0.0'
myver='@PACKAGE_VERSION@'
error() {
if [ "$USECOLOR" = "YES" -o "$USECOLOR" = "yes" ]; then
@ -49,6 +49,15 @@ usage() {
echo
}
version() {
printf "pacman-optimize (pacman) %s\n" "$myver"
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 law.\n"
echo
}
die() {
error $@
exit 1
@ -66,6 +75,10 @@ if [ "$1" != "" ]; then
usage
exit 0
fi
if [ "$1" = "-V" -o "$1" = "--version" ]; then
version
exit 0
fi
dbroot="$1"
fi