Subject: | M::B on Win32 produces 'EXE_FILES' option in Makefile.PL that fails under *nix |
Using Module::Build 0.30 on WinXP SP3, AS Perl 5.10:
If I put a perl script (e.g. "check_perldiag") in the 'bin' folder of my
distribution, Module::Build creates a Makefile.PL with the following option:
'EXE_FILES' => [
'bin\\check_perldiag'
]
This, however, apparently fails under *unix, where make says:
"No rule to make target `bin\check_perldiag', needed by
`blib/script/bin\check_perldiag'. Stop."
If I change the above option to:
'EXE_FILES' => [
'bin/check_perldiag'
]
both make on *nix and nmake on Win32 run without any problems, but
Module::Build keeps overriding this line every time I do "./Build dist".
I cannot change it back from within the resulting archive, since this
messes up the permissions inside the archive and CPAN refuses to index
the distribution (due to the "no world-writable dirs" rule).
Petar Shangov