]> git.pond.sub.org Git - empserver/commitdiff
Chapters Introduction and Server are also subjects, and all pages in
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 22 Dec 2005 12:23:38 +0000 (12:23 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 22 Dec 2005 12:23:38 +0000 (12:23 +0000)
those chapters should refer to their chapter-subject.  Check & fix.

info/God.t
info/info.pl

index ab9676988329ee142025c4a71bef0bdcb3cc1ed7..27c310a1bb1463ebacfd74e3b206ea23f518274f 100644 (file)
@@ -98,4 +98,4 @@ Any time the Deity helps anyone,
 Deity intervention starts becoming a factor in the game.
 As a Deity, you absolutely can't go wrong
 if you do nothing at all except routine game maintenance.
-.SA "Deity"
+.SA "Deity, Server"
index ab30bcae7ffe4dec682a8c276cfaf14dd522b27e..5493bd2cd33d47257b62f23a5c9454e88759c390 100644 (file)
@@ -202,8 +202,10 @@ sub parse_file {
 sub parse_see_also {
     my ($topic) = @_;
     my @see_also = split(/, /, $see_also{$topic});
+    my $wanted = $chapter{$topic};
     my $found;                # found a subject?
 
+    $wanted = undef if $wanted eq 'Concept' or $wanted eq 'Command';
     $filename = "$srcdir/$topic";
 
     for (@see_also) {
@@ -211,10 +213,14 @@ sub parse_see_also {
            set_subject($_, $topic);
            $found = 1;
        }
+       if ($wanted && $_ eq $wanted) {
+           $wanted = undef;
+       }
     }
 
     $. = $sanr{$topic};
     error("No subject listed in .SA") unless $found;
+    error("Chapter $wanted not listed in .SA") if $wanted;
 }
 
 # Add a new entry to %subject and possibly to %largest