3 PATH=/usr/bin:/sbin:/usr/sbin:/usr/ccs/bin:/usr/sepp/bin:/home/oetiker/bin
5 VERSION=`perl -n -e 'm/\QAC_INIT([rrdtool],[\E(.+?)\Q])\E/ && print $1' configure.ac`
6 PERLVERS=`perl -n -e 'm/NUMVERS=(\d+\.\d+)/ && print $1' configure.ac`
8 perl -i -p -e 's/^\$VERSION.+/\$VERSION='$PERLVERS';/' bindings/perl-*/*.pm
9 perl -i -p -e 's/RRDtool 1\S+/RRDtool '$VERSION'/ && s/Copyright.+?Oetiker.+\d{4}/Copyright by Tobi Oetiker, 1997-2005/' src/*.h src/*.c
10 perl -i -p -e 's/^Version:.+/Version: '$VERSION'/' rrdtool.spec
11 perl -i -p -e 's/rrdtool-[\.\d]+\d(pre\d+)?(rc\d+)?/rrdtool-'$VERSION'/g' doc/rrdbuild.pod
13 echo "Tagging and releasing rrdtool $VERSION ($PERLVERS). Press any Key to continue."
15 svn commit -m "prepare for the release of rrdtool-$VERSION"
18 svn checkout svn://svn.ee.ethz.ch/rrdtool/branches/1.2/program .
19 svn log --stop-on-copy --xml --verbose svn://svn.ee.ethz.ch/rrdtool/branches/1.2/program | \
20 xsltproc --stringparam strip-prefix branches/1.2/program /home/oetiker/data/svn-checkout/rrdtool/branches/1.2/program/svn2cl.xsl - >CHANGES
21 cp CHANGES /home/oetiker/public_html/webtools/rrdtool/pub/
23 PKG_CONFIG_PATH=/usr/pack/rrdtool-1.2svn-to/sun4u-sun-solaris2.8/lib/pkgconfig/
24 export PKG_CONFIG_PATH
28 gtar zxvf rrdtool*.tar.gz
34 cp rrdtool*.tar.gz /home/oetiker/public_html/webtools/rrdtool/pub/
35 (cd /home/oetiker/public_html/webtools/rrdtool/pub/;rm rrdtool.tar.gz;ln -s rrdtool-$VERSION.tar.gz rrdtool.tar.gz)
38 svn copy -m "tagging version $VERSION" svn://svn.ee.ethz.ch/rrdtool/branches/1.2/program svn://svn.ee.ethz.ch/rrdtool/tags/$VERSION