File generate-tarball.sh of Package vice33

#!/bin/sh

version="$(rpm --query --queryformat '%{VERSION}\n' --specfile vice.spec | head -1)"

tar xf "vice-${version}.tar.gz" || exit 1

while read -r file; do
    [ -f "vice-${version}/data/${file}" ] && rm "vice-${version}/data/${file}"
done < vice-roms.txt

tar czf "vice-${version}-no-roms.tar.gz" "vice-${version}"
openSUSE Build Service is sponsored by