diff options
author | Levente Polyak <anthraxx@archlinux.org> | 2022-05-18 02:31:26 +0200 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2022-06-22 01:05:02 +0200 |
commit | d94badcd0be4f1f0bdc85a9e17f622373fcc42b2 (patch) | |
tree | 09755c43df16dd47d8f99c15213c49315219cb71 /src/archco.in | |
parent | e1a51770b26f3b36f24dc5668253eda23a8c8bcf (diff) | |
download | devtools-d94badcd0be4f1f0bdc85a9e17f622373fcc42b2.tar.xz |
make: split out source files into src folder
Diffstat (limited to 'src/archco.in')
-rw-r--r-- | src/archco.in | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/archco.in b/src/archco.in new file mode 100644 index 0000000..a93d819 --- /dev/null +++ b/src/archco.in @@ -0,0 +1,26 @@ +#!/bin/bash +# +# SPDX-License-Identifier: GPL-3.0-or-later + +m4_include(lib/common.sh) + +scriptname=${0##*/} + +if [[ -z $1 ]]; then + printf 'Usage: %s <package name>...\n' "$scriptname" + exit 1 +fi + +case $scriptname in + archco) + SVNURL="svn+ssh://svn-packages@repos.archlinux.org/srv/repos/svn-packages/svn";; + communityco) + SVNURL="svn+ssh://svn-community@repos.archlinux.org/srv/repos/svn-community/svn";; + *) + die "Couldn't find svn url for %s" "$scriptname" + ;; +esac + +for i in "$@"; do + svn co "$SVNURL/$i" +done |