[Bast-commits] r8802 - DBIx-Class/0.08/trunk
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Tue Feb 23 10:19:19 GMT 2010
Author: ribasushi
Date: 2010-02-23 10:19:19 +0000 (Tue, 23 Feb 2010)
New Revision: 8802
Modified:
DBIx-Class/0.08/trunk/Makefile.PL
Log:
Looks like the distdir wrapping is finally taken care of
Modified: DBIx-Class/0.08/trunk/Makefile.PL
===================================================================
--- DBIx-Class/0.08/trunk/Makefile.PL 2010-02-23 01:07:23 UTC (rev 8801)
+++ DBIx-Class/0.08/trunk/Makefile.PL 2010-02-23 10:19:19 UTC (rev 8802)
@@ -116,9 +116,6 @@
unlink 'MANIFEST';
}
- print "Regenerating dbicadmin.pod\n";
- system('perl script/dbicadmin --pod > lib/dbicadmin.pod');
-
print "Regenerating Optional/Dependencies.pod\n";
require DBIx::Class::Optional::Dependencies;
DBIx::Class::Optional::Dependencies->_gen_pod;
@@ -128,14 +125,39 @@
# PodInherit();
}
+tests_recursive (qw|
+ t
+|);
+
install_script (qw|
script/dbicadmin
|);
-tests_recursive (qw|
- t
-|);
+### Mangle makefile - read the comments for more info
+#
+postamble <<"EOP";
+
+# This will add an extra dep-spec for the distdir target,
+# which `make` will fold together in a first-come first-serve
+# fashion. What we do here is essentially adding extra
+# commands to execute once the distdir is assembled (via
+# create_distdir), but before control is returned to a higher
+# calling rule.
+distdir : dbicadmin_pod_inject
+
+# The pod self-injection code is in fact a hidden option in
+# dbicadmin itself
+dbicadmin_pod_inject :
+\tcd \$(DISTVNAME) && \$(ABSPERL) -Ilib script/dbicadmin --selfinject-pod
+
+# Regenerate manifest before running create_distdir.
+create_distdir : manifest
+
+EOP
+
+
+
resources 'IRC' => 'irc://irc.perl.org/#dbix-class';
resources 'license' => 'http://dev.perl.org/licenses/';
resources 'repository' => 'http://dev.catalyst.perl.org/repos/bast/DBIx-Class/';
More information about the Bast-commits
mailing list