Meta/Rel{Build,Upload,Clean}: use kup to upload to k.org

todo
Junio C Hamano 2013-05-24 14:11:39 -07:00
parent 4e1f1d5c8a
commit f59f24d399
3 changed files with 27 additions and 1 deletions

View File

@ -27,4 +27,11 @@ done

sha1sum $files | gpg --clearsign >git-$version.sign

ls -l git-$version.sign $files
for file in $files
do
gzip -dc <"$file" >"${file%.gz}" &&
gpg -b "${file%.gz}" &&
rm "${file%.gz}" || exit
done

ls -l git-$version.sign $files git*-$version.tar.sig

View File

@ -8,8 +8,11 @@ do
test -f "$s" &&
v=$(expr "$s" : '^git-\(.*\)\.sign$') &&
$rm git-$v.tar.gz &&
$rm git-$v.tar.sig &&
$rm git-htmldocs-$v.tar.gz &&
$rm git-htmldocs-$v.tar.sig &&
$rm git-manpages-$v.tar.gz &&
$rm git-manpages-$v.tar.sig &&
$rm "$s"
done


View File

@ -1,5 +1,21 @@
#!/bin/sh

kup=/srv/project/git/kup/kup

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

$kup --host kup.kernel.org put "${s%.sig}.gz" "$s" "$dest"
done

pw=$(sed -ne '/code.google.com login jch2355@gmail.com/s/.* password //p' $HOME/.netrc)

for s in git-*.sign