3 # Quick script to make a flattened tarball (unix)
16 test -d $NAME-$VERSION && rm -rf $NAME-$VERSION
19 find * \( -name $NAME-$VERSION -o -name CVS \) -prune -o -type f -exec cp -p {} $NAME-$VERSION \;
21 # Prune unwanted files
22 for i in make-dist README.cvs; do
23 rm -f $NAME-$VERSION/$i
27 which tar >/dev/null 2>&1
29 echo "Creating $NAME-$VERSION.tar.gz"
30 tar -zcf $NAME-$VERSION.tar.gz $NAME-$VERSION
34 which zip >/dev/null 2>&1
36 echo "Creating $NAME-$VERSION.zip"
37 zip -q -r $NAME-$VERSION.zip $NAME-$VERSION
40 test -d $NAME-$VERSION && rm -rf $NAME-$VERSION