Added some plugins authored by Barijaona Ramaholimihaso
[blosxom-plugins.git] / make-dist
bloba7f51a1ec60fa262c62cb1a4aec0e970b6183a01
1 #!/bin/sh
3 # Quick script to make a flattened tarball (unix)
6 cd `dirname $0`
8 NAME=blosxom-plugins
9 VERSION=`cat VERSION`
11 test -d $NAME-$VERSION && rm -rf $NAME-$VERSION
12 mkdir $NAME-$VERSION
14 find * \( -name $NAME-$VERSION -o -name CVS \) -prune -o -type f -exec cp -p {} $NAME-$VERSION \;
16 # Prune unwanted files
17 for i in make-dist README.cvs; do
18 rm -f $NAME-$VERSION/$i
19 done
21 # Create tarball
22 which tar >/dev/null 2>&1
23 if [ $? == 0 ]; then
24 echo "Creating $NAME-$VERSION.tar.gz"
25 tar -zcf $NAME-$VERSION.tar.gz $NAME-$VERSION
28 # Create zip file
29 which zip >/dev/null 2>&1
30 if [ $? == 0 ]; then
31 echo "Creating $NAME-$VERSION.zip"
32 zip -q -r $NAME-$VERSION.zip $NAME-$VERSION
35 test -d $NAME-$VERSION && rm -rf $NAME-$VERSION