From: David Schleef Date: Fri, 9 Nov 2001 23:30:38 +0000 (+0000) Subject: The release script. I could never find it when necessary, so it's X-Git-Tag: r0_7_61~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b9d10e143d625d96cc6f05099c9850111a4d539a;p=comedi.git The release script. I could never find it when necessary, so it's here now. --- diff --git a/scripts/release b/scripts/release new file mode 100755 index 00000000..c4c3b406 --- /dev/null +++ b/scripts/release @@ -0,0 +1,58 @@ +#!/bin/bash + +export LINUXDIR=/d/ds/linux/linux-2.2.17 +export CVSROOT=ds@oss.lineo.com:/var/cvs +export CVS_RSH=ssh + +if [ ! "$1" ] +then + echo -n "minor version: " + read minor +else + minor=$1 +fi + +lastminor=$(echo $minor-1|bc) + +tag=r0_7_$minor +version=0.7.$minor +lasttag=r0_7_$lastminor + +echo 'removing export_tmp' +rm -rf export_tmp + +mkdir export_tmp + +cd export_tmp + +echo "deleting tag $tag" +cvs rtag -d $tag comedi + +echo "tagging $tag" +cvs rtag $tag comedi + +echo "exporting" +cvs export -r $tag comedi + +echo "generating patch" +cvs rdiff -u -r $lasttag -r $tag comedi >../patch-comedi-$version + +mv comedi comedi-$version + +mkdir comedi-$version/include/comedi +mkdir comedi-$version/include/modbuild + +sed "s/^SUBLEVEL.*/SUBLEVEL = $minor/" comedi-$version/Makefile >Makefile.tmp +mv Makefile.tmp comedi-$version/Makefile + +tar -czvf ../comedi-$version.tgz comedi-$version + +exit + +cd comedi-$version + +yes "" | make +make +make + +