aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>2001-03-08 10:28:44 +0800
committersteve <steve@FreeBSD.org>2001-03-08 10:28:44 +0800
commit8655eb5882167b6b5301832fb4918bf5009e4124 (patch)
treed5c7d23f9a2a8489fc96fc137e02d0c4700475af
parentf0f1142106ed5a5b6065ac6392d71a95df2d32ee (diff)
downloadfreebsd-ports-gnome-8655eb5882167b6b5301832fb4918bf5009e4124.tar.gz
freebsd-ports-gnome-8655eb5882167b6b5301832fb4918bf5009e4124.tar.zst
freebsd-ports-gnome-8655eb5882167b6b5301832fb4918bf5009e4124.zip
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.
-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