From: Graham Knop Date: Sat, 7 Feb 2015 02:59:59 +0000 (-0500) Subject: add refresh command to update distar X-Git-Tag: v0.002000~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0edb27b8a16974902029b68364c6fa06e444a1d3;p=p5sagit%2FDistar.git add refresh command to update distar --- diff --git a/lib/Distar.pm b/lib/Distar.pm index 549f084..f2dd42d 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -156,6 +156,7 @@ sub run_preflight { $include = "\n# --- Makefile.include:\n" . do { local $/; <$fh> }; } + $dist_test .= "REMAKE = \$(PERLRUN) Makefile.PL @{[ map { $self->quote_literal($_) } @ARGV ]}"; $dist_test .= <<'END' # --- Distar section: @@ -179,6 +180,10 @@ distmanicheck: create_distdir nextrelease: $(ABSPERLRUN) Distar/helpers/add-changelog-heading $(VERSION) Changes git add -p Changes +refresh: + cd Distar && git pull + rm Makefile + $(REMAKE) END for my $type ('', 'minor', 'major') {