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

m4_include(lib/common.sh)

scriptname=${0##*/}

if [[ -z $1 ]]; then
	echo 'Usage: '$scriptname' <package name>...'
	exit 1
fi

case $scriptname in
	archco)
		SVNURL="svn+ssh://svn-packages@nymeria.archlinux.org/srv/repos/svn-packages/svn";;
	communityco)
		SVNURL="svn+ssh://svn-community@nymeria.archlinux.org/srv/repos/svn-community/svn";;
	*)
		die "Couldn't find svn url for $scriptname"
		;;
esac

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