From f91ad808b3cc519fab69f5e587b5a5ff3ab30028 Mon Sep 17 00:00:00 2001 From: Steve Price Date: Thu, 8 Mar 2001 02:28:44 +0000 Subject: Tweak to catch missing directories from the Makefiles in the various categories which were failing to be mapped from directory to port name because 'make index' can't know to run 'make describe' in directories it doesn't know exist. --- Tools/make_index | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Tools/make_index') 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 -- cgit v1.2.3