2007-06-22 00:18:53 +02:00
|
|
|
# removes stuff under old Unicode license
|
|
|
|
# $1 is directory with tarballs
|
|
|
|
set -o errexit
|
2015-03-17 16:04:58 +01:00
|
|
|
VERSION=2.2.5
|
2011-07-18 09:20:07 +02:00
|
|
|
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
|
2017-06-02 11:46:10 +02:00
|
|
|
gzip -cd "$1/figlet-$VERSION.tar.gz" > "$1/figlet-$VERSION-patched.tar"
|
|
|
|
tar --delete -f "$1/figlet-$VERSION-patched.tar" figlet-$VERSION/fonts/jis0201.flc
|
|
|
|
bzip2 -f "$1/figlet-$VERSION-patched.tar"
|
2007-06-22 00:18:53 +02:00
|
|
|
cd - 1>/dev/null
|
|
|
|
rm -Rf $TMPDIR
|
|
|
|
else
|
|
|
|
echo "creating tmp dir failed"
|
2017-06-02 11:46:10 +02:00
|
|
|
exit 102
|
2007-06-22 00:18:53 +02:00
|
|
|
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
|