3 use ExtUtils::MakeMaker;
5 my @sign = (MM->can("signature_target") ? (SIGN => 1) : ());
6 my $version_diff = 0; # we'll have to die if this becomes true
7 my $version_from = 'lib/File/Rsync/Mirror/Recent.pm';
8 if ($ARGV[0] && $ARGV[0] eq "--setversion") {
9 eval { require $version_from; };
10 open my $fh, "make the-release-name|" or die;
12 my ($have_version) = <$fh> =~ /^version\s+([\d\._]+)/m;
13 my ($namespace) = $version_from;
14 $namespace =~ s|^lib/(.+)\.pm$|$1|;
15 $namespace =~ s|/|::|g;
16 eval qq{ if (\$$namespace\::VERSION != \$have_version) {
17 warn "Not equal: CPAN::Testers::ParseReport::VERSION[\$$namespace\::VERSION] Makefile version[\$have_version]";
24 NAME => 'File::Rsync::Mirror::Recent',
25 AUTHOR => 'Andreas König <andreas.koenig.7os6VVqR@franz.ak.mind.de>',
26 VERSION_FROM => $version_from,
30 # 'Data::Serializer' => 0.46, # restricted to YAML without it
33 'File::Basename' => 0,
40 EXE_FILES => [qw(bin/rrr-aggregate)],
42 DIST_DEFAULT => join(" ", # note: order matters!
49 COMPRESS => 'gzip -9',
52 clean => { FILES => 'File-Rsync-Mirror-Recent-*' },
57 ==> I had to update some \$VERSIONs <==
58 ==> Your Makefile has been rebuilt. <==
59 ==> Please rerun the make command. <==
68 $(PERL) Makefile.PL --setversion
71 $(NOECHO) $(ECHO) 'version ' $(VERSION)
72 $(NOECHO) $(ECHO) 'release-name ' $(DISTVNAME).tar$(SUFFIX)
75 /usr/bin/perl -I../CPAN/GIT/trunk/release-lib -S release $(DISTVNAME).tar$(SUFFIX)
86 # if we depend on $(DISTVNAME).tar$(SUFFIX), then the rest of the
87 # Makefile breaks our intent to NOT remake dist
90 tar xvzf $(DISTVNAME).tar$(SUFFIX)
91 cd $(DISTVNAME) && $(ABSPERLRUN) Makefile.PL
92 cd $(DISTVNAME) && $(MAKE) $(PASTHRU)
93 cd $(DISTVNAME) && $(MAKE) test $(PASTHRU)
96 touch $(DISTVNAME)/SIGNATURE && $(CP) $(DISTVNAME)/SIGNATURE ./SIGNATURE
97 $(CP) $(DISTVNAME)/META.yml ./META.yml
98 $(CP) $(DISTVNAME)/MANIFEST ./MANIFEST
105 my $out = $self->SUPER::distdir;
106 $out =~ s/distdir :/distdir ::/g;
110 # dist_dir was the name in very old MakeMaker as of 5.005_04
113 my $out = $self->SUPER::dist_dir;
114 $out =~ s/distdir :/distdir ::/g;