From: Gavin Carr Date: Wed, 22 Aug 2007 02:56:01 +0000 (+0000) Subject: Add VERSION file and make-dist script. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=43ee5913c70df53978d2964d07c1a5beaaff74b3;p=matthijs%2Fupstream%2Fblosxom-plugins.git Add VERSION file and make-dist script. --- diff --git a/.cvsignore b/.cvsignore index 5005c2d..772ecb1 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,2 +1,4 @@ .svn .bzr +.bzrignore +blosxom-plugins* diff --git a/VERSION b/VERSION new file mode 100644 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 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 +