Add VERSION file and make-dist script.
authorGavin Carr <gonzai@users.sourceforge.net>
Wed, 22 Aug 2007 02:56:01 +0000 (02:56 +0000)
committerGavin Carr <gonzai@users.sourceforge.net>
Wed, 22 Aug 2007 02:56:01 +0000 (02:56 +0000)
.cvsignore
VERSION [new file with mode: 0644]
make-dist [new file with mode: 0755]

index 5005c2dc0a1964aaa6f6636dd670f4d65bf7ace9..772ecb14ecf85ea3fa9e76f3ed31676edb93bb29 100644 (file)
@@ -1,2 +1,4 @@
 .svn
 .bzr
+.bzrignore
+blosxom-plugins*
diff --git a/VERSION b/VERSION
new file mode 100644 (file)
index 0000000..227cea2
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+2.0.0
diff --git a/make-dist b/make-dist
new file mode 100755 (executable)
index 0000000..6a3ef5e
--- /dev/null
+++ b/make-dist
@@ -0,0 +1,41 @@
+#!/bin/sh
+#
+# Quick script to make a flattened tarball (unix)
+#
+
+die() {
+  echo $*
+  exit 1
+}
+
+cd `dirname $0`
+
+NAME=blosxom-plugins
+VERSION=`cat VERSION`
+
+test -d $NAME-$VERSION && rm -rf $NAME-$VERSION
+mkdir $NAME-$VERSION
+
+find * \( -name $NAME-$VERSION -o -name CVS \) -prune -o -type f -exec cp -p {} $NAME-$VERSION \;
+
+# Prune unwanted files
+for i in make-dist README.cvs; do
+  rm -f $NAME-$VERSION/$i
+done
+
+# Create tarball
+which tar >/dev/null 2>&1
+if [ $? == 0 ]; then
+  echo "Creating $NAME-$VERSION.tar.gz"
+  tar -zcf $NAME-$VERSION.tar.gz $NAME-$VERSION
+fi
+
+# Create zip file
+which zip >/dev/null 2>&1
+if [ $? == 0 ]; then
+  echo "Creating $NAME-$VERSION.zip"
+  zip -q -r $NAME-$VERSION.zip $NAME-$VERSION 
+fi
+
+test -d $NAME-$VERSION && rm -rf $NAME-$VERSION
+