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