#!/bin/sh
# builds a debian package
version=2.0
make tarfile
rm -rf xtoys-$version
rm -f xtoys_"$version"*
mkdir xtoys-$version
cd xtoys-$version
tar xvf ../xtoys.tar
cd ..
tar zcf xtoys-"$version".tar.gz xtoys-$version
cd xtoys-$version
dh_make -e mike@latticeguy.net -f ../xtoys-"$version".tar.gz
echo /usr/share/man/man1 >> debian/dirs
rm debian/docs
rm debian/xtoys-doc.docs
rm debian/xtoys-doc.install
# properly I should edit the files in debian further and
# then rerun the following
dpkg-buildpackage -rfakeroot
