~xdavidwu/aurbuild

ref: 70185493663684f0b3b2ecb6979551ad50504d96 aurbuild/trigger-vcs -rwxr-xr-x 303 bytes
70185493Pinghao Wu scripts: move to hut a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

dispatch() {
	yq ".sources += [\"https://aur.archlinux.org/$1.git\"] |
		.environment.pkgbase = \"$1\"
	" < build.yml | hut builds submit -n"$1 $2" -t "aurbuild/$1" -
}

IFS='
'

for i in $(cat vcs.list); do
	[ "$(echo "$i" | head -c 1)" = '#' ] && continue
	dispatch $i '(vcs)'
done