Update of /cvsroot/module-build/Module-Build/lib/Module/Build
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16061/lib/Module/Build
Modified Files:
Tag: release-0_26_branch
Base.pm
Log Message:
Set $^X to find_perl_interpreter() in the Build script
Index: Base.pm
===================================================================
RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v
retrieving revision 1.340.2.15
retrieving revision 1.340.2.16
diff -u -d -r1.340.2.15 -r1.340.2.16
--- Base.pm 24 Jan 2005 03:50:19 -0000 1.340.2.15
+++ Base.pm 6 Feb 2005 13:26:16 -0000 1.340.2.16
@@ -1006,6 +1006,10 @@
use $build_package;
+# Some platforms have problems setting \$^X in shebang contexts, fix it up here
+\$^X = Module::Build->find_perl_interpreter
+ unless File::Spec->file_name_is_absolute(\$^X);
+
if (-e 'Build.PL' and not $build_package->up_to_date("Build.PL", \$0)) {
warn "Warning: Build.PL has been altered. You may need to run 'perl Build.PL' again.\\n";
}
|