#!/bin/sh -ex # Remove Wolfenstein dogs from source : ${DOOMWADDIR:=/usr/share/doom}; version=$(perl -lne 'if(/^Version\s*:\s*(\S+)/){print$1;exit}' wadinfo.txt; rm -f prboom-plus.wad; deutex -doom2 "$DOOMWADDIR" -create wadinfo.txt prboom-plus.wad; find . -mindepth 1 -type d -print0 | xargs -0 rm -Rf; mv wadinfo.txt prboom.txt; rm -f error.txt output.txt; popd; find "prboom-plus-$version" -print0 | sort -z | \ tar -T- --null --use=xz -cvf "prboom-plus-$version+.tar.xz";