autotool scripts/gensync
- move scripts/gensync -> scripts/gensync.in - add -V --version options to scripts/gensync.in - add autotool commands to generate scripts/gensync Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
This commit is contained in:
parent
2b6bc5bcda
commit
a2d018a954
3 changed files with 18 additions and 3 deletions
|
@ -218,6 +218,7 @@ src/pacman/po/Makefile.in
|
||||||
src/util/Makefile
|
src/util/Makefile
|
||||||
scripts/Makefile
|
scripts/Makefile
|
||||||
scripts/abs
|
scripts/abs
|
||||||
|
scripts/gensync
|
||||||
scripts/makepkg
|
scripts/makepkg
|
||||||
doc/Makefile
|
doc/Makefile
|
||||||
etc/Makefile
|
etc/Makefile
|
||||||
|
|
|
@ -14,7 +14,7 @@ bin_SCRIPTS = \
|
||||||
updatesync
|
updatesync
|
||||||
|
|
||||||
EXTRA_DIST = abs.in \
|
EXTRA_DIST = abs.in \
|
||||||
gensync \
|
gensync.in \
|
||||||
makepkg.in \
|
makepkg.in \
|
||||||
makeworld \
|
makeworld \
|
||||||
pacman-optimize \
|
pacman-optimize \
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#
|
#
|
||||||
# gensync
|
# gensync
|
||||||
#
|
#
|
||||||
# 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@'
|
||||||
|
|
||||||
# functions
|
# functions
|
||||||
|
|
||||||
|
@ -47,6 +47,15 @@ usage() {
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
version() {
|
||||||
|
printf "gensync (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
|
||||||
|
}
|
||||||
|
|
||||||
error () {
|
error () {
|
||||||
echo "==> ERROR: $*" >&2
|
echo "==> ERROR: $*" >&2
|
||||||
}
|
}
|
||||||
|
@ -79,6 +88,11 @@ if [ "$1" = "-h" -o "$1" = "--help" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "-V" -o "$1" = "--version" ]; then
|
||||||
|
version
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# source system and user makepkg.conf
|
# source system and user makepkg.conf
|
||||||
if [ -r /etc/makepkg.conf ]; then
|
if [ -r /etc/makepkg.conf ]; then
|
||||||
source /etc/makepkg.conf
|
source /etc/makepkg.conf
|
Loading…
Add table
Reference in a new issue