(info, html): Implement.

(all): Depend on info.

Flatten info directory.  This undoes the move to one subdirectory per
chapter, which was done during Empire 2.  The structure doesn't buy us
much, as the info name space is flat, and it complicates makefiles.

Overhaul info.pl:
- It now wants to run in the root of the build tree.
- Information on source files and subjects is now stored in makefiles,
  thus info.pl no longer picks up random junk from the file system.
- Clean up Perl anachronisms, in particular use subroutine arguments and
  results rather than global variables where convenient.
- Change format of diagnostics to the common format used by GNU tools,
  so that Emacs and the like can parse it.
- Catch missing .SA.
- When creating a new subject file, cowardly refuse to overwrite an
  existing file.
- Subject files contain topics sorted by chapter, then by name.  The
  order of chapters used to depend on how Perl sorts hash keys.  Fix
  it.
This commit is contained in:
Markus Armbruster 2005-12-22 10:09:17 +00:00
parent 641879abc7
commit 4ea4a01fd5
258 changed files with 318 additions and 239 deletions

33
info/country.t Normal file
View file

@ -0,0 +1,33 @@
.TH Command COUNTRY
.NA country "Find out country status"
.LV Expert
.SY "country <NATS>"
The country command displays status of the countries you specify.
.s1
.EX country *
.NF
Sat Oct 15 20:54:30 2005
# last access status name
0 Now logged on DEITY POGO
1 Now logged on Active Khazad'ur
2 Unknown Active Spectre
3 Unknown Sanctuary 3
4 Unknown Sanctuary 4
5 Unknown Visitor visitor
.FI
.s1
Deities get more information:
.s1
.EX country *
.NF
Sat Oct 15 20:54:30 2005
# last access BTU status name
0 Now logged on 640 DEITY POGO
1 Now logged on 480 Active Khazad'ur
2 Sat Oct 15 17:56 - Sat Oct 15 18:11 638 Active Spectre
3 Never logged on 640 Sanctuary 3
4 Never logged on 640 Sanctuary 4
5 Sat Oct 15 20:08 - ? 640 Visitor visitor
.FI
.s1
.SA "players, Communication, Playing"