Commit graph

5218 commits

Author SHA1 Message Date
6d1e4dcdfa info/Update-sequence: Explicitly document prepare order
Sectors, ships, planes and land units are always visited in the same
order, but it doesn't hurt to be explicit.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-09-01 20:17:15 +02:00
6ab4848cc7 travis: Specify dist to fix Linux build
The build fails on Travis since we require autoconf 2.69 (commit
db055a).  Travis still defaults to Ubuntu Precise, and Precise's
autoconf is too old.  We could revert commit db055a and rely on Travis
to keep things working with old autoconf.  But Precise reached end of
life a couple of months ago, and I suspect it's only a matter of time
until Travis drops it, too.

Fix the build on Travis by requesting Trusty.  Its end of life is
planned for April 2019.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-27 11:31:58 +02:00
7c9c795c31 travis: Configure notifications
Notifications go to the mailing list and to the IRC channel.

Signed-off-by: Gerd Flaig <gefla@pond.sub.org>
Message-Id: <871so1nqcx.fsf@oxygen.pond.sub.org>
[Commit message tweaked]
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-24 22:01:29 +02:00
c3a34c9730 Drop superfluous #include
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-22 20:12:42 +02:00
ed26bc80ac Make: Make "make dist" catch stale configure
As commit 1ec9b94 explains, the version reported by configure is fixed
at configure generation time.  "make dist" happily distributes a stale
one.  Not terrible, because all that's stale is the output of
configure --version, just embarrassing.

Make gen-tarball-version fail when the configure --version doesn't
match the tarball version.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-13 14:31:07 +02:00
10ddaca6b1 Make: Fix configure generated for dist-client
Commit 1ec9b94 broke regeneration of configure for dist-client: it
uses .tarball-version, which exists only in the tarball, not in the
source tree.

Generating the client's autoconf stuff into the source tree is a
questionable idea anyway, as it won't run there.  Generate it while
building the tarball instead.

Bonus: doesn't distribute a useless .dirty-stamp.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-13 14:31:07 +02:00
63c6dd6896 Make: Move .tarball-version generation out of src/scripts/tarball
Commit 1ec9b94 made src/scripts/tarball generate .tarball-version and
.dirty-stamp.  Hardcoding it like that there is a bit ugly.

Move it into a separate tweak script that is run right before tar.
We'll tweak some more in the next commits.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-13 14:00:16 +02:00
240474195d src/scripts/tarball: Clean up to prepare for the next commit
We don't save $1 in a variable, only $1-$2.  Okay, because we don't
need $1 by itself.  However, the next commit will.  So save it.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-13 13:38:10 +02:00
1f53a56e9d Drop stale comment from .gitignore
Commit e597257 folded $(bld_distgen) into $(src_distgen), but
neglected to update comments in .gitignore.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-13 13:25:03 +02:00
042d43f30d Make: Drop unused variable VERSION
Missed in commit 1ec9b94.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-13 10:50:27 +02:00
5f59699cfd Make: Fix "make dist" to remake stale files in $(srcdir)
Broken in commit bb0f3a6.  VPATH claims another victim.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 10:13:29 +02:00
c28571640b build-aux/git-version-gen: Refresh from Gnulib commit d93aa1d
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 09:59:59 +02:00
af72ecd75f tests: Normalize version numbers to 4.4.0 instead of 4.3.34
Commit 1ec9b94 normalized version numbers in test output to 4.3.34,
because that was thought to be the next version then.  4.3.34 has
become 4.4.0 meanwhile.  Update the normalization just to avoid
mention of 4.3.34.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 09:50:17 +02:00
1288e55103 info/version: Update example to current output
Current output of the version command, except replace version number
4.3.33.N-H-dirty by 4.4.0.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 09:50:17 +02:00
3193c22ac2 info: Update change log for 4.4.0
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 09:35:55 +02:00
ef5903cd9d info/xdump: Update advice on xdump evolution
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 09:32:01 +02:00
d3de388ad4 Drop a a few accidentally repeated words
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 09:32:01 +02:00
25a7ae3068 info: Split Empire4 into Empire4.0, Empire4.2, Empire4.3
"info Empire4" has become unwieldy: more than 4000 lines, almost a
quarter of a Megabyte.  Split it up.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 09:32:00 +02:00
54f54ac081 doc: Drop redundant doc/CHANGES4.X, improve README
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 09:31:07 +02:00
024638ed5d doc: Rename CHANGES to CHANGES2.0
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 08:27:50 +02:00
22e4b1fc45 info: Consistently spell Empire 2, 3 and 4 with a space
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 08:27:50 +02:00
ae8a3582a2 info/Clients: Outdated and misleading, delete
The .NA header promises information on "Clients which communicate well
with the Empire4 Server".  The page doesn't really deliver.  It talks
about client support for asynchronous notifications.  It stopped
listing separate client projects in 4.0.7 (1997).  Not mentioning such
clients isn't just outdated, it's actively misleading.

Perhaps an up-to-date info page on clients would be useful, but I
can't write one right now.  Delete.

Loses a bit of information for client developers that was tacked on in
4.0.7: pointers to dump commands, and an explanation of timestamps.  I
trust client writers can find "info xdump" without this.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 08:27:44 +02:00
952fb252a3 info: Trim .SA of change log pages to just "Server"
Looks like an attempt was made to have .SA point to info pages for
significantly changed things.  It wasn't done consistently, though,
and it's impractical for Empire 4.  Drop these references, and keep
only "Server".

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 08:10:17 +02:00
473187e12b info: Improve .NA and first paragraph of change log pages
The .NA show up in "info Server", like this:

   Chainsaw !   Changes from KSU Empire to Chainsaw code
    Empire2 !   Changes from the Chainsaw server to the Empire2 Server
    Empire3     Changes from the Empire2 server to the Empire3 Server
    Empire4 !   Changes from the Empire3 server to the Empire4 Server
[...]
       Merc     Changes from KSU code to Merc code
 Old-empire !   Differences from 1.2 to UCB Empire

Tweak them to look like this:

   Chainsaw !   Changes from KSU Empire to Chainsaw (1992-93)
    Empire2 !   Changes from Chainsaw to Empire 2 (1995)
    Empire3     Changes in Empire 3 (1995-96)
    Empire4 !   Changes in Empire 4 (1996-present)
[...]
       Merc     Changes from KSU code to Merc code (1992)
 Old-empire !   Differences from 1.2 to UCB Empire

The first paragraph of Empire2.t refers to "the new Empire 2" server.
Drop "new", because it clearly ain't anymore.  Same for Empire3.t.

The first paragraph of Empire4.t claims "several changes/fixes" have
been made.  Umm, that's only tenuously connected to reality by now.
Rewrite the paragraph.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 08:07:44 +02:00
b76d111834 info/Wolfpack: Redundant, delete
The .TH and .NA header promise information about "Wolfpack Code" and
"The Wolfpack Project", but the body doesn't really deliver.  It's
basically the first paragraph of Empire4.t plus pointers to Options.t
and Empire.t.  Has been that way since it was added in 4.0.2.
History.t covers the Wolfpack project more usefully, so delete this
one.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 08:07:44 +02:00
9f78fc8634 info: Drop outdated bug report instructions
Ken Stevens stopped maintaining Empire many years ago, but "info
Empire2" and "info Empire3" still direct users to him.  Drop that.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 08:07:44 +02:00
8637ef93b3 trade: Don't increase negative mobility to zero on trade
check_trade() sets plane and land unit mobility to zero on trade.
Even when it's negative.  Fix to leave it alone then.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 08:07:44 +02:00
9a535b3d29 info/Chainsaw: Rename from CHANGES.CHAINSAW
No need to shout.  Name it like we do for other server versions instead.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 08:07:44 +02:00
144adf5e70 info/Plane-types: Document helo takeoff/landing in mountains
Forgotten in commit 6157b6c.  While there, fix the references to "show
ship stats" headings, and say "to paradrop" instead of "to paratroop".

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 08:07:44 +02:00
372b272ab9 Use printf %d instead of %i, just for consistency
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 08:07:44 +02:00
a1ba346736 Spell ID and UID consistently all-caps
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 08:07:44 +02:00
aa59a6aa0a info/territory: Drop the "id" from "territory id number"
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 08:07:44 +02:00
ae6a05327b man/fairland: Don't explain the default seed value
How the default seed value is computed is an implementation detail of
no interest to the user.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 08:07:29 +02:00
a54257c51c Spell the plural of an acronym consistently without apostrophe
Opinions differ on how to pluralize acronyms[*], but let's be
consistent: say "BTUs", not "BTU's".

[*] https://en.wikipedia.org/wiki/Acronym#Representing_plurals_and_possessives

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-12 07:59:26 +02:00
a83c512dd5 Use all-caps for a few acronyms and for "OK"
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-07 10:08:31 +02:00
ab004fed13 Expand a few unnecessary abbreviations in output text
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-07 10:08:31 +02:00
90f5822a85 navigate march: Say "to sweep mines" instead of "to minesweep"
The choice of "to minesweep" in "`d' to drop mines, and `m' to
minesweep" is obviously intentional.  But saying it in standard
English instead is at least as clear, so do that.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-07 10:08:31 +02:00
c5a2d136ec Correct spelling as one word and as two words
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-07 10:08:31 +02:00
b6bfc14ab2 Spell harbor consistently
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-07 10:08:31 +02:00
2bcd875715 Spell BTU and ETU consistently
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-07 10:08:31 +02:00
e6ce36df64 Spelling corrections
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-07 10:08:31 +02:00
644817993b Fix up a few identifier references in comments
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-07 10:08:31 +02:00
3fa0937a80 btu: Undo damage done to file comment in commit 9f25de3
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-07 10:08:31 +02:00
82e61187ed info/Mobility: Belatedly remove security unit mobility use
Missed in commit 39884af, v4.3.33.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-07 10:08:31 +02:00
1fd4199b8a lwp: LwpCurrent can't be null, drop useless check
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-07 10:08:31 +02:00
4a556eb8e7 powe: Delete dead assignment in gen_power().
It's been dead ever since commit 5635fc2 added it.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-07 10:08:21 +02:00
ac0e41a8f3 show: Clean up long vs. int in fmttime2822() for Windows
fmttime2822() prints long with format %d, and passes long to abs().
Harmless, because both int and long are 32 bits in the Windows API.
Clean it up anyway.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-07 09:38:32 +02:00
3872604ce0 Make: Fix distclean for separate build tree
Fix removal of autoconf-generated files in src/client/.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-07 09:38:32 +02:00
afe5001a23 Update copyright notice
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-07 09:38:32 +02:00
d3a64a4f6e Merge branch 'readline' 2017-08-07 09:37:44 +02:00