5 # By Ken Stevens <children@empire.net>
8 # In empire, redirect the output of the player "list" command to a file called
9 # "player.list". Similarly, make a file listing deity commands and call it
10 # deity.list. Put both these files in this directory, and then run this script
11 # to check which Empire commands need to be documented.
17 my ($com, @list, @obsolete, @Commands);
19 open(LIST, "<player.list") || die "Can't read player.list\n";
26 last if /^For further info on command syntax see/;
35 open(LIST, "<deity.list") || die "Can't read deity.list\n";
42 last if /^For further info on command syntax see/;
49 open(OBSOLETE, "<Subjects/Obsolete.t") ||
50 die "Can't read Subjects/Obsolete.t\n";
53 push(@obsolete, $1) if /^.L (\S+)$/;
58 open (LS, "ls Commands|");
62 next unless /^(\S+).t/;
67 print "In list but not Commands:\n";
69 print " $l\n" unless grep (/^$l$/, @Commands);
71 print "In Commands but not list:\n";
72 for my $c (@Commands) {
73 print " $c\n" unless grep(/^$c$/, @list) || grep(/^$c$/, @obsolete);