root/trunk/mkrelease

Revision 2674, 1.0 KB (checked in by dhozac, 2 years ago)

Add missing svn:keywords.

  • Property svn:executable set to *
  • Property svn:keywords set to Id
Line 
1#!/bin/bash
2
3proj="util-vserver"
4rwroot="svn+ssh://svn.linux-vserver.org/var/svn/${proj}"
5roroot="http://svn.linux-vserver.org/svn/${proj}"
6
7usage() {
8        echo "Usage: mkrelease"
9}
10
11die() {
12        echo $1
13        exit ${2:-1}
14}
15
16TMP=`mktemp -d`
17cd "$TMP"
18svn co ${roroot}/trunk || die "svn co failed"
19cd trunk
20
21ver=`grep AC_INIT configure.ac | awk '{ print $2 }'`
22ver=${ver/,}
23
24echo ">>> create release tag"
25
26svn copy ${rwroot}/trunk ${rwroot}/tags/release-${ver} \
27        -m "Tagging the ${ver} release of the ${proj} project" || die "svn copy failed"
28
29
30echo ">>> bootstrap sources"
31
32make -f Makefile.svn || die "make failed"
33
34echo ">>> create release tarball"
35
36./configure --sysconfdir=/etc --prefix=/usr --localstatedir=/var || die "configure failed"
37make dist || die "make dist failed"
38
39for i in *.tar.bz2; do
40        gpg --detach-sign --armor $i || die "signing failed"
41done
42
43echo ">>> uploading tarball and signature"
44
45scp -p *.tar.bz2* ftp.linux-vserver.org:/var/ftp/pub/utils/util-vserver || die "scp failed"
46
47cd /
48rm -fr "$TMP"
Note: See TracBrowser for help on using the browser.