From: Matt S Trout Date: Fri, 11 May 2012 18:30:02 +0000 (+0000) Subject: probably improve the release stuff X-Git-Tag: v0.001000~21 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=27dbd26e5793b953fda1ae30701c0cf220560831;p=p5sagit%2FDistar.git probably improve the release stuff --- diff --git a/lib/Distar.pm b/lib/Distar.pm index 2dedc9f..93b7d11 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -81,9 +81,10 @@ sub run_preflight { sub MY::postamble { <<'END'; } preflight: perl -IDistar/lib -MDistar -erun_preflight $(VERSION) -upload: preflight $(DISTVNAME).tar$(SUFFIX) +release: preflight disttest + rm -rf $(DISTVNAME) + $(MAKE) $(DISTVNAME).tar$(SUFFIX) cpan-upload $(DISTVNAME).tar$(SUFFIX) -release: upload git commit -a -m "Release commit for $(VERSION)" git tag v$(VERSION) -m "release v$(VERSION)" git push --tags