From: Graham Knop Date: Mon, 20 Sep 2021 15:05:42 +0000 (+0200) Subject: generate readme from ABSTRACT_FROM rather than VERSION_FROM if provided X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=82d5ea32d43cf4102a17dc59b387c70020f3c1ca;p=p5sagit%2FDistar.git generate readme from ABSTRACT_FROM rather than VERSION_FROM if provided --- diff --git a/lib/Distar.pm b/lib/Distar.pm index 2c0f670..90fc864 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -229,6 +229,7 @@ sub write_manifest_skip { ? 'git -C $(DISTAR_LIB) pull' : '$(ECHO) "Distar code is not in a git repo, unable to update!"' ), + README_FROM => $self->{ABSTRACT_FROM} || $self->{VERSION_FROM}, ); my $dist_test = $self->SUPER::dist_test(@_); @@ -279,9 +280,9 @@ sub write_manifest_skip { 'readmefile: create_distdir' => [ '$(NOECHO) $(TEST_F) $(DISTVNAME)/README || $(MAKE) $(DISTVNAME)/README', ], - '$(DISTVNAME)/README: $(VERSION_FROM)' => [ + '$(DISTVNAME)/README: $(README_FROM)' => [ '$(NOECHO) $(MKPATH) $(DISTVNAME)', - 'pod2text $(VERSION_FROM) >$(DISTVNAME)/README', + 'pod2text $(README_FROM) >$(DISTVNAME)/README', '$(NOECHO) $(ABSPERLRUN) $(HELPERS)/add-to-manifest -d $(DISTVNAME) README', ], 'distsignature: readmefile licensefile',