Re: [Module::Build] ./Build on Win98
Status: Beta
Brought to you by:
kwilliams
|
From: Randy W. S. <ml...@th...> - 2006-02-25 19:32:41
|
Dr Bean wrote: > On Fri, 24 Feb 2006, Randy W. Sims wrote: >>I'd like to know if the resulting 'Build.bat' differs on Win9x. I >>suspect not. Otherwise the invokation of perl from the batch file would >>cause errors or different behavior. > > > @rem = '--*-Perl-*-- > @echo off > if "%OS%" == "Windows_NT" goto WinNT > perl -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9 > goto endofperl > :WinNT > perl -x -S "%0" --build_bat 0" --build_bat %1 %2 %3 %4 %5 %6 %7 %8 %9 Ok, here's the problem. The quoting is wrong in the invokation of pl2bat. Both arguments to pl2bat got bungled into one misformed arg. I need to figure out how to invoke pl2bat from the command line with corrected quoting. The command we're using now, that produces the bungled last line above is: pl2bat -n "-x -S """%0""" --build_bat %*" -o "-x -S """%0""" --build_bat %1 %2 %3 %4 %5 %6 %7 %8 %9" < Build > Build.bat It looks like it is trying to expand %*" -o "-x -S """% as an evironment var. Maybe an extra space after %*: pl2bat -n "-x -S """%0""" --build_bat %* " -o "-x -S """%0""" --build_bat %1 %2 %3 %4 %5 %6 %7 %8 %9 " < Build > Build.bat Otherwise, I'm not sure how to quote the percent symbol (%%* doesn't work). I've posted a message over on alt.msdos.batch about this. Meanwhile, maybe the above command will produce a valid Build.bat file? Randy. |