#!/bin/sh
VERSION=$1
TMPDIR=tarball-arena
rm -rf "$TMPDIR" a2ps-$VERSION-GPL.tar.gz
mkdir "$TMPDIR"
tar zxf a2ps-$VERSION.tar.gz -C "$TMPDIR"
cd "$TMPDIR"
for f in \
tests/gps-ref/Converter.ps \
tests/gps-ref/fasttrig.ps \
tests/ps-ref/Converter.ps \
tests/ps-ref/fasttrig.ps \
tests/tstfiles/Converter.java \
tests/tstfiles/fasttrig.pas
do
rm -f a2ps-*/"$f"
done
tar zcf ../a2ps-$VERSION-GPL.tar.gz a2ps-*