From: David Schleef Date: Mon, 16 Jul 2001 00:04:06 +0000 (+0000) Subject: release script X-Git-Tag: r0_7_16 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=76e6cf0404ad7eaeba8cbbc67e04c183fab83a65;p=comedilib.git release script --- diff --git a/etc/rel_comedilib b/etc/rel_comedilib new file mode 100755 index 0000000..08c20d0 --- /dev/null +++ b/etc/rel_comedilib @@ -0,0 +1,64 @@ +#!/bin/bash + +if [ ! "$1" ] +then + echo -n "minor version: " + read minor +else + minor=$1 +fi + +topdir=$(pwd) + +lastminor=$(($minor-1)) + +tag=r0_7_$minor +version=0.7.$minor +lasttag=r0_7_$lastminor + +export CVSROOT=oss.lineo.com:/var/cvs + +echo 'removing export_tmp' +rm -rf export_tmp + +mkdir export_tmp +exportdir=${topdir}/export_tmp + +cd export_tmp + +echo "deleting tag $tag" +cvs rtag -d $tag comedilib + +echo "tagging $tag" +cvs rtag $tag comedilib + +echo "exporting" +cvs export -r $tag comedilib + +echo "diffing" +cvs rdiff -u -r $lasttag -r $tag comedilib >../patch-comedilib-$version + +mv comedilib comedilib-$version + +cd comedilib-$version + +echo version=${version} >version +rm etc/rel_comedilib +rm todo +make -C doc + +cd ${exportdir} + +echo "version=$version" >comedilib-$version/version + +tar -czvf ../comedilib-$version.tgz comedilib-$version + +exit + +cd comedi-$version + +yes "" | make +make +make + +