forked from pool/figlet
4d3f48ac6a
Update to version 2.2.4, Spec file updates, Rebased figlet-config.patch to apply cleanly, Removed figlet-random.patch and figlet-implicit.patch (fixed upstream) OBS-URL: https://build.opensuse.org/request/show/76334 OBS-URL: https://build.opensuse.org/package/show/Base:System/figlet?expand=0&rev=6
21 lines
599 B
Bash
21 lines
599 B
Bash
# removes stuff under old Unicode license
|
|
# $1 is directory with tarballs
|
|
set -o errexit
|
|
VERSION=2.2.4
|
|
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 figlet-$VERSION/fonts/8859-*.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
|