Update flavourpathinfo to use Blosxom::Debug.
[blosxom-plugins.git] / make-dist
blobbffc6922975b3c4e1441588fa6d111b257700b51
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 for SIZE in large medium small; do
12 TARBALL="$NAME-$SIZE-$VERSION"
13 test -d $TARBALL && rm -rf $TARBALL
14 mkdir $TARBALL
16 # Small/Medium
17 if [ -f MANIFEST.$SIZE ]; then
18 for i in `cat MANIFEST.$SIZE`; do
19 if [ -f $i ]; then
20 cp -p $i $TARBALL
21 elif [ -f $NAME-large-$VERSION/$i ]; then
22 cp -p $NAME-large-$VERSION/$i $TARBALL
23 else
24 echo "Warning: cannot find plugin '$i' (MANIFEST.$SIZE)"
26 done
28 # Large
29 else
30 # Copy everything
31 find * \( -name $TARBALL -o -name CVS \) -prune -o -type f -exec cp -p {} $TARBALL \;
33 # Prune unwanted files
34 for i in make-dist README.cvs blosxom-plugins-medium.spec; do
35 rm -f $TARBALL/$i
36 done
39 # Create tarball
40 which tar >/dev/null 2>&1
41 if [ $? == 0 ]; then
42 echo "Creating $TARBALL.tar.gz"
43 tar -zcf $TARBALL.tar.gz $TARBALL
46 # Create zip file
47 which zip >/dev/null 2>&1
48 if [ $? == 0 ]; then
49 echo "Creating $TARBALL.zip"
50 zip -q -r $TARBALL.zip $TARBALL
52 done
54 for SIZE in large medium small; do
55 TARBALL="$NAME-$SIZE-$VERSION"
56 test -d $TARBALL && rm -rf $TARBALL
57 done