Re: [Module::Build] Ready for 0.22?
Status: Beta
Brought to you by:
kwilliams
|
From: Randy W. S. <Ra...@Th...> - 2004-01-13 23:42:38
|
On 1/13/2004 6:32 PM, Ken Williams wrote: > > 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? 'true' should always be available on *nix. The above looks safe to me, but then I thought '@' was safe. Randy. |