4 rwroot="svn+ssh://svn.linux-vserver.org/var/svn/${proj}"
5 roroot="http://svn.linux-vserver.org/svn/${proj}"
8 echo "Usage: mkrelease"
18 svn co ${roroot}/trunk || die "svn co failed"
21 ver=`grep AC_INIT configure.ac | awk '{ print $2 }'`
24 echo ">>> create release tag"
26 svn copy ${rwroot}/trunk ${rwroot}/tags/release-${ver} \
27 -m "Tagging the ${ver} release of the ${proj} project" || die "svn copy failed"
30 echo ">>> bootstrap sources"
32 make -f Makefile.svn || die "make failed"
34 echo ">>> create release tarball"
36 ./configure --sysconfdir=/etc --prefix=/usr --localstatedir=/var || die "configure failed"
37 make dist || die "make dist failed"
39 for i in *.tar.bz2; do
40 gpg --detach-sign --armor $i || die "signing failed"
43 echo ">>> uploading tarball and signature"
45 scp -p *.tar.bz2* ftp.linux-vserver.org:/var/ftp/pub/utils/util-vserver || die "scp failed"