the release script.
authorDavid Schleef <ds@schleef.org>
Mon, 5 Feb 2001 03:07:52 +0000 (03:07 +0000)
committerDavid Schleef <ds@schleef.org>
Mon, 5 Feb 2001 03:07:52 +0000 (03:07 +0000)
patches/rel_comedi [new file with mode: 0755]

diff --git a/patches/rel_comedi b/patches/rel_comedi
new file mode 100755 (executable)
index 0000000..76d2bf1
--- /dev/null
@@ -0,0 +1,56 @@
+#!/bin/bash
+
+export LINUXDIR=/d/ds/linux/linux-2.2.17
+
+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
+
+