aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>2001-03-08 02:28:44 +0000
committerSteve Price <steve@FreeBSD.org>2001-03-08 02:28:44 +0000
commitf91ad808b3cc519fab69f5e587b5a5ff3ab30028 (patch)
tree7fc8ea58db16ac14eec9a8b28ddd3224dc8a2f0e
parentf6c6f51a632295ab2e7790196a5f9760c0274441 (diff)
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.
Notes
Notes: svn path=/head/; revision=39222
-rw-r--r--Tools/make_index6
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