From 66fd2a1b23caeed5691c44ab2727f27addf5b153 Mon Sep 17 00:00:00 2001 From: oetiker Date: Fri, 3 Aug 2007 19:43:21 +0000 Subject: [PATCH] prepare for 1.3 beta 1 git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1182 a5681a0c-68f1-0310-ab6d-d61299d08faa --- configure.ac | 4 ++-- rrdtool-1.3-release | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 2 deletions(-) create mode 100755 rrdtool-1.3-release diff --git a/configure.ac b/configure.ac index ba08537..b22a80f 100644 --- a/configure.ac +++ b/configure.ac @@ -8,13 +8,13 @@ dnl Inspiration from http://autoconf-archive.cryp.to dnl tell automake the this script is for rrdtool dnl the official version number is dnl a.b.c -AC_INIT([rrdtool],[1.2.99907052400]) +AC_INIT([rrdtool],[1.2.99907080300]) dnl for testing a numberical version number comes handy dnl the released version are dnl a.bccc dnl the devel versions will be something like dnl a.b999yymmddhh -NUMVERS=1.299907061100 +NUMVERS=1.299907080300 AC_SUBST(NUMVERS) AC_CANONICAL_TARGET AM_INIT_AUTOMAKE diff --git a/rrdtool-1.3-release b/rrdtool-1.3-release new file mode 100755 index 0000000..fb1b13d --- /dev/null +++ b/rrdtool-1.3-release @@ -0,0 +1,37 @@ +#!/bin/sh +set -e +VERSION=`perl -n -e 'm/\QAC_INIT([rrdtool],[\E(.+?)\Q])\E/ && print $1' configure.ac` +PERLVERS=`perl -n -e 'm/NUMVERS=(\d+\.\d+)/ && print $1' configure.ac` +set -x +perl -i -p -e 's/^\$VERSION.+/\$VERSION='$PERLVERS';/' bindings/perl-*/*.pm +perl -i -p -e 's/RRDtool 1\S+/RRDtool '$VERSION'/ && s/Copyright.+?Oetiker.+\d{4}/Copyright by Tobi Oetiker, 1997-2007/' src/*.h src/*.c +perl -i -p -e 's/^Version:.+/Version: '$VERSION'/' rrdtool.spec +perl -i -p -e 's/rrdtool-[\.\d]+\d(pre\d+)?(rc\d+)?/rrdtool-'$VERSION'/g' doc/rrdbuild.pod +svn diff +echo "Tagging and releasing rrdtool $VERSION ($PERLVERS). Press any Key to continue." +read somekey +svn commit -m "prepare for the release of rrdtool-$VERSION" +mkdir /tmp/rrdtool-$$ +OPWD=`pwd` +cd /tmp/rrdtool-$$ +svn checkout svn://svn.oetiker.ch/rrdtool/trunk/program . +svn log --stop-on-copy --xml --verbose svn://svn.oetiker.ch/rrdtool/trunk | \ + xsltproc --stringparam strip-prefix trunk/program $OPWD/svn2cl.xsl - >CHANGES +sh MakeMakefile +#PKG_CONFIG_PATH=/usr/pack/rrdtool-1.3svn-to/i686-debian-linux3.1/lib/pkgconfig/ +#export PKG_CONFIG_PATH +./configure +make dist +# do a test build +tar zxvf rrdtool*.tar.gz +cd rrdtool-$VERSION +./configure +make +src/rrdtool +cd .. +scp CHANGES rrdtool*.tar.gz oposs@james:public_html/rrdtool/pub/ +ssh oposs@james "cd public_html/rrdtool/pub/;rm rrdtool.tar.gz;ln -s rrdtool-$VERSION.tar.gz rrdtool.tar.gz" +cd .. +rm -rf rrdtool-$$ +svn copy -m "tagging version $VERSION" svn://svn.oetiker.ch/rrdtool/trunk/program svn://svn.oetiker.ch/rrdtool/tags/$VERSION + -- 2.11.0