diff options
author | Steve Price <steve@FreeBSD.org> | 2001-03-08 02:28:44 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 2001-03-08 02:28:44 +0000 |
commit | f91ad808b3cc519fab69f5e587b5a5ff3ab30028 (patch) | |
tree | 7fc8ea58db16ac14eec9a8b28ddd3224dc8a2f0e /Tools/make_index | |
parent | f6c6f51a632295ab2e7790196a5f9760c0274441 (diff) |
Notes
Diffstat (limited to 'Tools/make_index')
-rw-r--r-- | Tools/make_index | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/make_index b/Tools/make_index index f9cddb25902f..f2ba2895aa8f 100644 --- a/Tools/make_index +++ b/Tools/make_index @@ -25,7 +25,11 @@ sub by_path { # Collapse all the '..' sequences. my @f = split('/', $name), @p = (); foreach (@f) { (/\.\./) ? pop(@p) : push(@p, $_); } - return $by_path{join('/', @p)}; + $name = join('/', @p); + return $by_path{$name} if (defined $by_path{$name}); + + print STDERR "make_index: no entry for: $name\n"; + return undef; } # This routine replaces what used to be the time-consuming |