#!/bin/sh if [ $# -ne 0 ]; then echo "Simple packaging file for the Debian source tarball." echo "" echo "Use in the root directory of the game, like so:" echo " scripts/pkg_deb" echo "The script will output a tarball angband_[git describe].orig.tar.gz" exit 1 fi TAG1=angband-`git describe` TAG2=angband_`git describe` OUT=$TAG2.orig.tar.gz # Error checking if [ -e $OUT ]; then cat < $TAG1/version && cd $TAG1 && ./autogen.sh && rm -rf autogen.sh autom4te.cache && cd .. && tar --exclude .gitignore --exclude *.dll --exclude *.mp3 --exclude lib/tiles/shockbolt/64x64.png -czvf ../$OUT $TAG1 && rm -rf $TAG1