# removes stuff under old Unicode license # $1 is directory with tarballs set -o errexit VERSION=2.2.5 if test -f "$1/figlet-$VERSION.tar.gz" ; then TMPDIR=`mktemp -d` if test -d $TMPDIR ; then trap "rm -rf \"$TMPDIR\" \"$1/figlet-$VERSION-patched.tar.bz2\"" ERR cd $TMPDIR tar -xzf "$1/figlet-$VERSION.tar.gz" rm -f figlet-$VERSION/fonts/jis0201.flc tar -cjf "$1/figlet-$VERSION-patched.tar.bz2" figlet-$VERSION cd - 1>/dev/null rm -Rf $TMPDIR else echo "creating tmp dir failed" fi else echo "file: $1/figlet-$VERSION.tar.gz doesn't exist" fi