2007-06-22 00:18:53 +02:00
|
|
|
# removes stuff under old Unicode license
|
|
|
|
# $1 is directory with tarballs
|
|
|
|
set -o errexit
|
2011-07-18 09:20:07 +02:00
|
|
|
VERSION=2.2.4
|
|
|
|
if test -f "$1/figlet-$VERSION.tar.gz" ; then
|
2007-06-22 00:18:53 +02:00
|
|
|
TMPDIR=`mktemp -d`
|
|
|
|
if test -d $TMPDIR ; then
|
2011-07-18 09:20:07 +02:00
|
|
|
trap "rm -rf \"$TMPDIR\" \"$1/figlet-$VERSION-patched.tar.bz2\"" ERR
|
2007-06-22 00:18:53 +02:00
|
|
|
cd $TMPDIR
|
2011-07-18 09:20:07 +02:00
|
|
|
tar -xzf "$1/figlet-$VERSION.tar.gz"
|
|
|
|
rm -f figlet-$VERSION/fonts/jis0201.flc figlet-$VERSION/fonts/8859-*.flc
|
|
|
|
tar -cjf "$1/figlet-$VERSION-patched.tar.bz2" figlet-$VERSION
|
2007-06-22 00:18:53 +02:00
|
|
|
cd - 1>/dev/null
|
|
|
|
rm -Rf $TMPDIR
|
|
|
|
else
|
|
|
|
echo "creating tmp dir failed"
|
|
|
|
fi
|
|
|
|
else
|
2011-07-18 09:20:07 +02:00
|
|
|
echo "file: $1/figlet-$VERSION.tar.gz doesn't exist"
|
2007-06-22 00:18:53 +02:00
|
|
|
fi
|