(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

17
info/sabotage.t Normal file
View file

@ -0,0 +1,17 @@
.TH Command SABOTAGE
.NA sabotage "Damage enemy territory with spy unit"
.LV Basic
.SY "sabotage <UNITS>"
The \*Qsabotage\*U command is used to blow up commodities
and cause havoc in the sector the spy is in. Spies don't
check relations and can cause damage to enemies and allies.
Sabotage can only be done by spy units. The spy must have
a shell to make an attempt.
.s1
Terrorizing your neighbors is dangerous work. Spies can be
caught or die during a sabotage attempt.
.s1
Sabotage can be more effective against enemy warehouses filled
with explosive or flammable materials.
.s1
.SA "Spies, Unit-types, LandUnits"