#!/bin/bash -x

rm *.tar.gz
perl Makefile.PL
make
make test
make docs
make manifest

make tardist

upload-cpan.pl *.tar.gz

hg commit -m "`grep 'VERSION =' lib/HTML/Seamstress.pm`"
hg push
