|
|
@@ -386,14 +386,14 @@ if (grep { $_ eq "configure" } @steps_run) {
|
|
|
&verbose("configuring module via Module::Build environment");
|
|
|
&runcmd("chmod u+rw Build.PL");
|
|
|
&runcmd("cp Build.PL Build.PL.orig");
|
|
|
- &runcmd("sed -e \"s:\\\$^X:'$perlwrap':g\" <Build.PL.orig >Build.PL");
|
|
|
+ &runcmd("(cat Build.PL.orig; echo '') | sed -e \"s:\\\$^X:'$perlwrap':g\" >Build.PL");
|
|
|
&runcmd("$perlwrap ./Build.PL $perl_args");
|
|
|
}
|
|
|
elsif ($environment eq 'ExtUtils::MakeMaker') {
|
|
|
&verbose("configuring module via ExtUtils::MakeMaker environment");
|
|
|
&runcmd("chmod u+rw Makefile.PL");
|
|
|
&runcmd("cp Makefile.PL Makefile.PL.orig");
|
|
|
- &runcmd("sed -e \"s:\\\$^X:'$perlwrap':g\" <Makefile.PL.orig >Makefile.PL");
|
|
|
+ &runcmd("(cat Makefile.PL.orig; echo '') | sed -e \"s:\\\$^X:'$perlwrap':g\" >Makefile.PL");
|
|
|
&runcmd("$perlwrap ./Makefile.PL $perl_args");
|
|
|
}
|
|
|
}
|