aboutsummaryrefslogtreecommitdiffstats
path: root/RelUpload
blob: 8d847ec8a37a24884e96459cf6eb9ec4a407f3ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

: ${kup=../kup/kup}

for s in git-*.sig
do
	test -f "$s" &&
	v=$(expr "$s" : '^git.*-\([^-]*\)\.tar\.sig$') &&
	case "$v" in
	*.rc[0-9]*)
		dest=/pub/software/scm/git/testing/ ;;
	*)
		dest=/pub/software/scm/git/ ;;
	esac &&

	$kup --host git@gitolite.kernel.org --subcmd kup-server \
	     put "${s%.sig}.gz" "$s" "$dest" ||
	exit
done