}
sub MY::postamble {
+ my ($self, %extra) = @_;
+
my $post = <<'END';
preflight:
perl -IDistar/lib -MDistar -erun_preflight $(VERSION)
git commit -a -m "Release commit for $(VERSION)"
git tag v$(VERSION) -m "release v$(VERSION)"
cpan-upload $(DISTVNAME).tar$(SUFFIX)
- git push --tags origin
- git push origin HEAD
+ git push origin --tags HEAD
distdir: readmefile
readmefile: create_distdir
pod2text $(VERSION_FROM) >$(DISTVNAME)/README
if (open my $fh, '<', 'maint/Makefile.include') {
$post .= do { local $/; <$fh> };
}
+ $post .= "\n" . join('', %extra) if keys %extra;
return $post;
}