Re: [Module::Build] Ready for 0.22?
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <ke...@ma...> - 2004-01-13 23:33:18
|
On Tuesday, January 13, 2004, at 05:23 PM, Randy W. Sims wrote:
>
> $(NOOP) is not available. MakeMaker uses a $(NOOP) variable, but it
> differs by OS. It would be nice to find a universal noop. I wonder if
> '@cd .' or "@cd File::Spec->curdir()" is universal? I know it works on
> *nix, Windows, OS/2. I'm not sure about VMS and the like.
'cd' always makes me a little edgy.
Maybe something like this?
my $os_type = Module::Build->os_type;
my $noop = ($os_type eq 'Windows' ? 'rem' :
$os_type eq 'VMS' ? 'Continue' :
'true');
That's basically what MakeMaker does.
Or do you mean 'true' isn't even available on some Unix systems?
-Ken
|