index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Andrew Fyfe <andrew@neptune-one.net> | 2007-04-11 21:19:01 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-05-27 17:16:27 -0400 |
commit | a2d018a954e36485036d707fa484ee20e0045186 (patch) | |
tree | bb0bdab15d1598315a31cca43addeaf54a5df736 | |
parent | 2b6bc5bcda7de08507df82cc2a275f7cd4a4e3c4 (diff) |
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | scripts/Makefile.am | 2 | ||||
-rwxr-xr-x | scripts/gensync.in (renamed from scripts/gensync) | 18 |
diff --git a/configure.ac b/configure.ac index 4aad0aa7..6c1bfd35 100644 --- a/configure.ac +++ b/configure.ac @@ -218,6 +218,7 @@ src/pacman/po/Makefile.in src/util/Makefile scripts/Makefile scripts/abs +scripts/gensync scripts/makepkg doc/Makefile etc/Makefile diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 58312e0a..0c6a06fb 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -14,7 +14,7 @@ bin_SCRIPTS = \ updatesync EXTRA_DIST = abs.in \ - gensync \ + gensync.in \ makepkg.in \ makeworld \ pacman-optimize \ diff --git a/scripts/gensync b/scripts/gensync.in index f99cf597..a8e782fd 100755 --- a/scripts/gensync +++ b/scripts/gensync.in @@ -2,7 +2,7 @@ # # 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 # 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@' # functions @@ -47,6 +47,15 @@ usage() { 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 () { echo "==> ERROR: $*" >&2 } @@ -79,6 +88,11 @@ if [ "$1" = "-h" -o "$1" = "--help" ]; then exit 0 fi +if [ "$1" = "-V" -o "$1" = "--version" ]; then + version + exit 0 +fi + # source system and user makepkg.conf if [ -r /etc/makepkg.conf ]; then source /etc/makepkg.conf |