summaryrefslogtreecommitdiffstats
path: root/scripts/abs
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2003-02-27 09:26:02 +0100
committerJudd Vinet <judd@archlinux.org>2003-02-27 09:26:02 +0100
commitf2e50be2f5b15c1985f9fcfb7ee1374dd6e94927 (patch)
treecd6c6d145cb9fa9c3229ea97959d3efceb6f9a53 /scripts/abs
parent9d9b0e8d2655f5430bf917452221400fc219a2d8 (diff)
downloadpacman-f2e50be2f5b15c1985f9fcfb7ee1374dd6e94927.tar.gz
pacman-f2e50be2f5b15c1985f9fcfb7ee1374dd6e94927.tar.xz
Imported from pacman-2.3.tar.gz
Diffstat (limited to 'scripts/abs')
-rwxr-xr-xscripts/abs51
1 files changed, 0 insertions, 51 deletions
diff --git a/scripts/abs b/scripts/abs
deleted file mode 100755
index 37e39be8..00000000
--- a/scripts/abs
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/bash
-
-myver='2.2'
-ABS_ROOT=/usr/abs
-
-usage() {
- echo "abs $myver"
- echo "usage: $0"
- echo
- echo "abs will synchronize PKGBUILD scripts from the CVS repository"
- echo "into /usr/abs. You can follow different package trees by editing"
- echo "/etc/abs/supfile.arch"
- echo
- exit 0
-}
-
-update() {
- if [ ! `type -p cvsup` ]; then
- echo "abs: cvsup was not found in PATH. Install cvsup"
- exit 1
- fi
-
- if [ ! -d "$ABS_ROOT" ]; then
- echo "abs: directory $ABS_ROOT does not exist"
- exit 1
- fi
-
- if [ "`id -u`" != "0" ]; then
- echo "abs: you must be root to update your ABS tree"
- exit 1
- fi
-
- for sup in `find /etc/abs -name "supfile.*"`; do
- cd $ABS_ROOT && cvsup -L 1 -r 0 -g -c .sup $sup
- done
-}
-
-for opt in "$@"; do
- case $opt in
- -h|--help)
- usage
- exit 0 ;;
- *)
- echo "abs: invalid option \"$opt\""
- exit 1 ;;
- esac
-done
-
-update
-
-exit 0