3 # Quick script to make a flattened tarball (unix)
11 test -d $NAME-$VERSION && rm -rf $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
22 which tar >/dev/null 2>&1
24 echo "Creating $NAME-$VERSION.tar.gz"
25 tar -zcf $NAME-$VERSION.tar.gz $NAME-$VERSION
29 which zip >/dev/null 2>&1
31 echo "Creating $NAME-$VERSION.zip"
32 zip -q -r $NAME-$VERSION.zip $NAME-$VERSION
35 test -d $NAME-$VERSION && rm -rf $NAME-$VERSION