[Bps-public-commit] r18545 - Shipwright/trunk/share/bin

jesse at bestpractical.com jesse at bestpractical.com
Mon Feb 23 21:00:37 EST 2009


Author: jesse
Date: Mon Feb 23 21:00:37 2009
New Revision: 18545

Modified:
   Shipwright/trunk/share/bin/shipwright-builder

Log:
* Added support for passing extra args to MakeMaker and Module::Build to lobotomize their POD parsing

Modified: Shipwright/trunk/share/bin/shipwright-builder
==============================================================================
--- Shipwright/trunk/share/bin/shipwright-builder	(original)
+++ Shipwright/trunk/share/bin/shipwright-builder	Mon Feb 23 21:00:37 2009
@@ -540,11 +540,14 @@
     `$perl -MShipwright::Util::CleanINC -e'eval { require Pod::Man}; if (\$@) { exit 1} else { exit 0 }' `;
     my $no_podman = ! $!;
     if ($no_podman || $args{'skip-man-pages'}) {
-         $text =~ s/%%MAKEMAKER_EXTRA%%/INSTALLMAN1DIR=none INSTALLMAN3DIR=none/;
+        $text =~ s/%%MODULE_BUILD_BEFORE_BUILD_PL%%/-MShipwright::Util::PatchModuleBuild/;
+         $text =~ s/%%MAKEMAKER_CONFIGURE_EXTRA%%/INSTALLMAN1DIR=none INSTALLMAN3DIR=none/;
     } else {
-         $text =~ s/%%MAKEMAKER_EXTRA%%//;
+         $text =~ s/%%MAKEMAKER_CONFIGURE_EXTRA%%//;
+         $text =~ s/%%MODULE_BUILD_BEFORE_BUILD_PL%%//;
     }
 
+
     return $text;
 }
 



More information about the Bps-public-commit mailing list