This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Problably no need anymore to put metaunits on CPAN now that we have a public git...
authorH.Merijn Brand <merijn@nb09.procura.nl>
Thu, 18 Sep 2008 12:44:08 +0000 (14:44 +0200)
committerH.Merijn Brand <merijn@nb09.procura.nl>
Thu, 18 Sep 2008 12:44:08 +0000 (14:44 +0200)
but this is what I use(d) to make the metaunits public

Makefile.PL [new file with mode: 0644]
make-dist.pl [new file with mode: 0755]

diff --git a/Makefile.PL b/Makefile.PL
new file mode 100644 (file)
index 0000000..f0d8c82
--- /dev/null
@@ -0,0 +1,19 @@
+#!perl
+
+use strict;
+
+exists $ENV{AUTOMATED_TESTING} && $ENV{AUTOMATED_TESTING} and exit 0;
+
+print <<EOM;
+
+This is neither a package nor a module, and it cannot be installed.
+
+Now that you have unpacked the compressed archive, you have access
+to the files that are used to create the Configure script, that in
+turn is used to build perl5.
+
+Read README for further instructions.
+
+EOM
+
+exit 0
diff --git a/make-dist.pl b/make-dist.pl
new file mode 100755 (executable)
index 0000000..3eeea1b
--- /dev/null
@@ -0,0 +1,20 @@
+#!/pro/bin/perl
+
+use strict;
+use warnings;
+
+use File::Find;
+use Archive::Tar;
+
+chdir "/pro/3gl/CPAN";
+
+my @today = localtime;
+my $today = (($today[5] + 1900) * 100 + $today[4] + 1) * 100 + $today[3];
+
+my @mc;
+find (sub { -d or push @mc, $File::Find::name }, "metaconfig");
+
+my $tgz = "/tmp/mc_units-$today.tgz";
+unlink $tgz;
+Archive::Tar->create_archive ($tgz, 9, sort @mc);
+print $tgz, "\t", -s $tgz, "\n";