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)"
30 # Copy more or less everything
31 find * \( -name $TARBALL -o -name CVS -o -name t -o -name scripts \) -prune -o -type f -exec cp -p {} $TARBALL \;
32 # Prune unwanted files
33 for i in README.cvs blosxom-plugins-*.spec MANIFEST* *~ *zip *tar.gz; do
38 # Copy scripts directory
39 cp -rp scripts $TARBALL
40 rm -rf $TARBALL/scripts/CVS
41 rm -f $TARBALL/scripts/make-dist
44 which tar >/dev/null 2>&1
46 echo "Creating $TARBALL.tar.gz"
47 tar -zcf $TARBALL.tar.gz $TARBALL
51 which zip >/dev/null 2>&1
53 echo "Creating $TARBALL.zip"
54 zip -q -r $TARBALL.zip $TARBALL
58 for SIZE in large medium small; do
59 TARBALL="$NAME-$SIZE-$VERSION"
60 test -d $TARBALL && rm -rf $TARBALL