release script r0_7_16
authorDavid Schleef <ds@schleef.org>
Mon, 16 Jul 2001 00:04:06 +0000 (00:04 +0000)
committerDavid Schleef <ds@schleef.org>
Mon, 16 Jul 2001 00:04:06 +0000 (00:04 +0000)
etc/rel_comedilib [new file with mode: 0755]

diff --git a/etc/rel_comedilib b/etc/rel_comedilib
new file mode 100755 (executable)
index 0000000..08c20d0
--- /dev/null
@@ -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
+
+