1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-01-10 13:28:12 -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/gensync
scripts/makepkg scripts/makepkg
scripts/makeworld scripts/makeworld
scripts/pacman-optimize
doc/Makefile doc/Makefile
etc/Makefile etc/Makefile
etc/makepkg.conf etc/makepkg.conf

View File

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

View File

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