3 # Quick script to make a flattened tarball (unix)
11 for SIZE in large medium small; do
12 TARBALL="$NAME-$SIZE-$VERSION"
13 test -d $TARBALL && rm -rf $TARBALL
17 if [ -f MANIFEST.$SIZE ]; then
18 for i in `cat MANIFEST.$SIZE`; do
21 elif [ -f $NAME-large-$VERSION/$i ]; then
22 cp -p $NAME-large-$VERSION/$i $TARBALL
24 echo "Warning: cannot find plugin '$i' (MANIFEST.$SIZE)"
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
40 which tar >/dev/null 2>&1
42 echo "Creating $TARBALL.tar.gz"
43 tar -zcf $TARBALL.tar.gz $TARBALL
47 which zip >/dev/null 2>&1
49 echo "Creating $TARBALL.zip"
50 zip -q -r $TARBALL.zip $TARBALL
54 for SIZE in large medium small; do
55 TARBALL="$NAME-$SIZE-$VERSION"
56 test -d $TARBALL && rm -rf $TARBALL