when refreshing upstream, use push URL
[p5sagit/Distar.git] / lib / Distar.pm
index a171b6c..90fc864 100644 (file)
@@ -30,6 +30,7 @@ sub author {
   our $Author = shift;
   $Author = [ $Author ]
     if !ref $Author;
+  1;
 }
 
 our @Manifest = (
@@ -46,6 +47,7 @@ our @Manifest = (
 
 sub manifest_include {
   push @Manifest, @_;
+  1;
 }
 
 sub readme_generator {
@@ -227,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(@_);
@@ -277,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',
@@ -354,7 +357,7 @@ F<Makefile.PL>:
 
 F<maint/Makefile.PL.include>:
 
-  BEGIN { -e 'Distar' or system("git clone git://git.shadowcat.co.uk/p5sagit/Distar.git") }
+  BEGIN { -e 'Distar' or system qw(git clone https://github.com/p5sagit/Distar.git) }
   use lib 'Distar/lib';
   use Distar 0.001;