From: oetiker Date: Tue, 27 Oct 2009 17:51:06 +0000 (+0000) Subject: create build script for 1.4 release X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d04c73fd0282677f8ba238bde808831a16853bc2;p=rrdtool.git create build script for 1.4 release git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1956 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/rrdtool-1.3-release b/rrdtool-1.3-release deleted file mode 100755 index 0762c82..0000000 --- a/rrdtool-1.3-release +++ /dev/null @@ -1,37 +0,0 @@ -#!/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-2008/' 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" -OPWD=`pwd` -cd /tmp -svn export svn://svn.oetiker.ch/rrdtool/trunk/program rrdtool-$$ -cd rrdtool-$$ -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 --enable-maintainer-mode -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 - diff --git a/rrdtool-1.4-release b/rrdtool-1.4-release new file mode 100755 index 0000000..97d1a89 --- /dev/null +++ b/rrdtool-1.4-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-2009/' 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" +OPWD=`pwd` +cd /tmp +svn export svn://svn.oetiker.ch/rrdtool/trunk/program rrdtool-$$ +cd rrdtool-$$ +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 --enable-maintainer-mode +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 +