Add VERSION and mkdist -- now ready for first release!
authormike <mike>
Sun, 3 Nov 2002 17:37:14 +0000 (17:37 +0000)
committermike <mike>
Sun, 3 Nov 2002 17:37:14 +0000 (17:37 +0000)
README
VERSION [new file with mode: 0644]
mkdist [new file with mode: 0755]

diff --git a/README b/README
index c3553a4..a5a565a 100644 (file)
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-$Id: README,v 1.10 2002-11-03 16:49:37 mike Exp $
+$Id: README,v 1.11 2002-11-03 17:37:14 mike Exp $
 
 cql-java - a free CQL compiler, and other CQL tools, for Java
 
@@ -34,6 +34,7 @@ But if you didn't know that, why are you even reading this?  :-)
 What's what in this distribution?
 
        README  This file
+       VERSION The version-number of this distribution
        src     Source-code for the cql-java library
        lib     The compiled library file, "cql-java.jar"
        bin     Simple shell-scripts to invoke the test-harnesses
diff --git a/VERSION b/VERSION
new file mode 100644 (file)
index 0000000..49d5957
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+0.1
diff --git a/mkdist b/mkdist
new file mode 100755 (executable)
index 0000000..fc5996d
--- /dev/null
+++ b/mkdist
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# mkdist - make a distribution of the cql-java software
+# $Id: mkdist,v 1.1 2002-11-03 17:37:14 mike Exp $
+
+version=`cat VERSION`
+distdir=cql-java-$version
+distfile=$distdir.tar.gz
+tmpdir=/tmp/$distdir
+echo "Building $distdir"
+trap "rm -rf $tmpdir" 1 2 15   # 0
+cp -rp . $tmpdir
+cd $tmpdir
+find . \( -name CVS -o -name .cvsignore \) -print | xargs rm -rf
+rm mkdist
+( cd src/org/z3950/zing/cql && make && make clean )
+( cd src/org/z3950/zing/cql && make docs )
+cd ..
+tar cf - $distdir | gzip -9v > $distfile
+rm -rf $tmpdir
+echo "Made $distfile"