Subject: Re: MM_Unix patch
>>>>> "Nick" == Nick Ing-Simmons <nik@tiuk.ti.com> writes:
Nick> Seems a little strong did you mean /^\.#/ ?
No. Every '#' in a Makefile file list will break the list:
Makefile
,-----
| FILES = foo \
| bar#bazz \
| bizz
|
| all:
| @echo $(FILES)
`-----
Shell
,-----
| % make -f ~/tmp/Makefile
| foo bar
`-----
Below is a more complete patch.
p5p-msgid: yfmd8s1vhpn.fsf@ls6.informatik.uni-dortmund.de
local(%pm); #the sub in find() has to see this hash
$ignore{'test.pl'} = 1;
$ignore{'makefile.pl'} = 1 if $Is_VMS;
+ FILE:
foreach $name ($self->lsdir($self->curdir)){
next if $name eq $self->curdir or $name eq $self->updir or $ignore{$name};
next unless $self->libscan($name);
+ next FILE if $name =~ /\#/;
if (-d $name){
next if -l $name; # We do not support symlinks at all
$dir{$name} = $name if (-f $self->catfile($name,"Makefile.PL"));
}
return;
}
+ return if /\#/;
my($path, $prefix) = ($File::Find::name, '$(INST_LIBDIR)');
my($striplibpath,$striplibname);
$prefix = '$(INST_LIB)' if (($striplibpath = $path) =~ s:^(\W*)lib\W:$1:i);