figlet/figlet-licpatch.sh
Marcus Meissner 49b0615456 Accepting request 290788 from home:benoit_monin:branches:Base:System
- update to version 2.2.5
- remove source figlet222-8859tables.tar.bz2: fixed upstream
- update figlet-licpatch.sh: iso8859 files fixed updtream

OBS-URL: https://build.opensuse.org/request/show/290788
OBS-URL: https://build.opensuse.org/package/show/Base:System/figlet?expand=0&rev=10
2015-03-17 15:04:58 +00:00

21 lines
566 B
Bash

# 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