From 76e6cf0404ad7eaeba8cbbc67e04c183fab83a65 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 16 Jul 2001 00:04:06 +0000 Subject: [PATCH] release script --- etc/rel_comedilib | 64 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100755 etc/rel_comedilib 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 + + -- 2.26.2