prboom-plus/clean_source.sh
Jan Engelhardt fe064aae55 Restore/update sanitation script
restore patches
restore spec syntax
restore suggests:freedoom
trim description a bit

OBS-URL: https://build.opensuse.org/package/show/games/prboom-plus?expand=0&rev=19
2016-03-29 23:46:33 +00:00

18 lines
563 B
Bash

#!/bin/sh -ex
# Remove Wolfenstein dogs from source; they belong to another game
# with incompatible licensing.
: ${DOOMWADDIR:=/usr/share/doom};
version=$(perl -lne 'if(/^Version\s*:\s*(\S+)/){print$1;exit}' <prboom-plus.spec)
rm -Rf "prboom-plus-$version"
tar -xf "prboom-plus-$version.tar.gz"
pushd "prboom-plus-$version/"
# retain files so automake won't complain
for i in data/sounds/dsdg*.wav data/sprites/dogs*.ppm; do
>"$i"
done
popd
find "prboom-plus-$version" -print0 | sort -z | \
tar --no-r --null --use=xz -T- -cvf "prboom-plus-$version+.tar.xz"