From: Graham Knop Date: Thu, 12 Nov 2015 10:04:31 +0000 (-0500) Subject: add FAKE_RELEASE option to skip uploading X-Git-Tag: v0.003000~34 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=263b723ef2794e7639278c0f5aeaac26002e1e9f;p=p5sagit%2FDistar.git add FAKE_RELEASE option to skip uploading --- diff --git a/lib/Distar.pm b/lib/Distar.pm index 2248b39..8bf1f61 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -135,6 +135,7 @@ sub write_manifest_skip { BRANCH => $self->{BRANCH} ||= 'master', CHANGELOG => $self->{CHANGELOG} ||= 'Changes', DEV_NULL_STDOUT => ($self->{DEV_NULL} ? '>'.File::Spec->devnull : ''), + FAKE_RELEASE => '', ); join('', @@ -158,6 +159,10 @@ release: preflight releasetest $(MAKE) $(DISTVNAME).tar$(SUFFIX) git commit -a -m "Release commit for $(VERSION)" git tag v$(VERSION) -m "release v$(VERSION)" + $(NOECHO) $(MAKE) pushrelease FAKE_RELEASE=$(FAKE_RELEASE) +pushrelease :: + $(NOECHO) $(NOOP) +pushrelease$(FAKE_RELEASE) :: cpan-upload $(DISTVNAME).tar$(SUFFIX) git push origin v$(VERSION) HEAD distdir: readmefile @@ -293,6 +298,11 @@ C and C commands. Releasing will generate a dist tarball and upload it to CPAN using cpan-upload. It will also create a git tag for the release, and push the tag and branch. +=head2 FAKE_RELEASE + +If release is run with FAKE_RELEASE=1 set, it will skip uploading to CPAN and +pushing to git. A release commit will still be created and tagged locally. + =head2 preflight Performs a number of checks on the files and repository, ensuring it is in a