Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--scripts/Makefile.am2
-rwxr-xr-xscripts/repo-remove.in (renamed from scripts/repo-remove)17
3 files changed, 18 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index b31bc671..eebb21ca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -223,6 +223,7 @@ scripts/makepkg
scripts/makeworld
scripts/pacman-optimize
scripts/repo-add
+scripts/repo-remove
doc/Makefile
etc/Makefile
etc/makepkg.conf
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index e131b865..7e1fbc3b 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -20,7 +20,7 @@ EXTRA_DIST = abs.in \
pacman-optimize.in \
rankmirrors \
repo-add.in \
- repo-remove \
+ repo-remove.in \
updatesync
abs gensync makepkg makeworld pacman-optimize rankmirrors repo-add repo-remove re-pacman updatesync:
diff --git a/scripts/repo-remove b/scripts/repo-remove.in
index 37079d99..6e2a6579 100755
--- a/scripts/repo-remove
+++ b/scripts/repo-remove.in
@@ -19,7 +19,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
# USA.
-myver='3.0.0'
+myver='@PACKAGE_VERSION@'
FORCE=0
REPO_DB_FILE=""
@@ -40,6 +40,15 @@ usage() {
echo
}
+version() {
+ printf "repo-remove (pacman) %s\n" "$myver"
+ printf "Copyright (C) 2007 Dan McGee <dan@archlinux.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
+}
+
# test if a file is a repository DB
test_repo_db_file () {
if [ -f "$REPO_DB_FILE" ]; then
@@ -71,6 +80,12 @@ if [ "$1" = "-h" -o "$1" = "--help" ]; then
exit 0
fi
+# check for version flags
+if [ "$1" = "-V" -o "$1" = "--version" ]; thhen
+ version
+ exit 0
+fi
+
# check for correct number of args
if [ $# -lt 2 ]; then
usage