* Building a new tarball from upstream cvs
------------------------------------------

* update the checkout
cd sadms
cvs update

* create an usable copy
VERSION=$(grep ^VERSION Makefile | cut -d= -f2)
cvs export -DNOW -d sadms-$VERSION sadms

* remove some unwanted files
find sadms-$VERSION -name "*.mo" -exec rm {} \;

* prepare the clean directory
make -C sadms-$VERSION dist

* create the archive
mv sadms-$VERSION/sadms-$VERSION.tar.gz ../sadms_$VERSION~CVS$(date "+%Y%m%d").orig.tar.gz

* cleanup
rm -rf sadms-$VERSION
