1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

Throw away "./" in findfile so that the Mac makefile has valid paths.

[originally from svn r5111]
This commit is contained in:
Owen Dunn 2005-01-15 17:16:48 +00:00
parent b4f0ffc2bf
commit 4be66f3a59

View File

@ -242,6 +242,7 @@ sub findfile {
$i = 0; $i = 0;
foreach $dir (@srcdirs) { foreach $dir (@srcdirs) {
$outdir = $dir, $i++ if -f "$dir$name"; $outdir = $dir, $i++ if -f "$dir$name";
$outdir=~s/^\.\///;
} }
die "multiple instances of source file $name\n" if $i > 1; die "multiple instances of source file $name\n" if $i > 1;
$findfilecache{$name} = $outdir . $name; $findfilecache{$name} = $outdir . $name;