summaryrefslogtreecommitdiffstats
path: root/archco
blob: 3a153a75a2aa146609250ec5353a5e6bd693148d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

scriptname=${0##*/}

if [ "$1" = '' ]; then
	echo 'Usage: '$scriptname' <package name> [<package name>]'
	exit 1
fi

case $scriptname in
	archco)
		SVNURL="svn+ssh://gerolde.archlinux.org/srv/svn-packages";;
	communityco)
		SVNURL="svn+ssh://aur.archlinux.org/srv/svn-packages";;
	*)
		echo "error: couldn't find svn url for $scriptname"
		exit 1
		;;
esac

for i in "$@"; do
	svn co "$SVNURL/$i"
done