Commit graph

1944 commits

Author SHA1 Message Date
Eric S. Raymond
566d56938e Factor the macroscope cross-reference generator into a re-usable module...
...and a wrapper, because other tools will need the cross-referencer.  

Note to packagers: 'make install' now puts wmltools.py in the Python directory
for site-local packages.  If you build a Wesnoth development package, include
this.  But the main Wesnoth package for players can leave it out.
2007-05-07 14:18:20 +00:00
Eric S. Raymond
764326dec6 Restore a mislaid reporting line. 2007-05-05 13:52:26 +00:00
Eric S. Raymond
043a7a4130 Get rid of lame directory-abstraction macros.
Directory structure is exposed elsewhere, so all these really do is
make life difficult for sanity-checking tools.
2007-05-05 13:28:48 +00:00
Eric S. Raymond
8df27ff9e6 Check line ranges on local macros. 2007-05-04 10:49:36 +00:00
Eric S. Raymond
b5765d123e Now that maps have their own extension,
...macroscope can sanity-check reference to them just like any other
resource file type.
2007-05-04 10:24:48 +00:00
Eric S. Raymond
82f0c80ea9 Bug fix. 2007-05-04 02:15:49 +00:00
Eric S. Raymond
eada46e2b5 upconvert now creates .map extensions when appropriate. 2007-05-04 01:53:56 +00:00
Eric S. Raymond
34407f924b Enable upconvert to handle one-line maps. 2007-05-03 20:24:51 +00:00
Eric S. Raymond
e7e1e05f88 Fix some minor bugs in error handling. 2007-05-03 19:29:52 +00:00
Eric S. Raymond
e1bfd44dc1 Avoid a suffix-aliasing problem. 2007-05-03 18:05:53 +00:00
Eric S. Raymond
cfb1210e1b Better autodetection of terrain coding. 2007-05-03 16:22:49 +00:00
Eric S. Raymond
e752b73b66 Don't be fooled by terrain= in comments. 2007-05-03 15:35:42 +00:00
Eric S. Raymond
f57607ded4 Make sure we get line termination right. 2007-05-03 15:05:48 +00:00
Eric S. Raymond
c54e76adad Large refactoring to handle keep conversions better. 2007-05-03 11:05:28 +00:00
Eric S. Raymond
1acda064cf Fix a regexp bug that was preventing proper map translation. 2007-05-03 07:56:47 +00:00
Eric S. Raymond
f5c2c236f6 Arrange for both map transformations to be done on a 1.2.x map,
and simplify some code.
2007-05-03 07:42:47 +00:00
Eric S. Raymond
f410430429 Refactoring step. 2007-05-03 07:21:46 +00:00
Eric S. Raymond
d4c8727598 Some conversions discovered while lifting SotBE. 2007-05-02 13:06:20 +00:00
Eric S. Raymond
b57927e70b Speed up upconvert's keep handling slightly. 2007-05-01 23:24:29 +00:00
Eric S. Raymond
6fd811f6cb Fix a bug reported by Noyga. 2007-05-01 15:59:39 +00:00
Eric S. Raymond
e93bb09274 This should have been flushed days ago. The upconvert script obsoletes it. 2007-05-01 12:57:18 +00:00
Eric S. Raymond
07b2e0e778 More resource translations. 2007-05-01 07:54:27 +00:00
Eric S. Raymond
fd2534225c Handle the holy->arcane change. 2007-04-30 15:23:54 +00:00
Eric S. Raymond
987e8eba20 upconvert now handles terrain=, terrain_liked=, and valid_terrain. 2007-04-30 09:04:11 +00:00
Eric S. Raymond
ed206aa128 upconvert now translates terrain_likes clauses. 2007-04-29 21:56:57 +00:00
Mark de Wever
8fa90b7500 updated the unit tree generation files 2007-04-29 17:01:33 +00:00
Eric S. Raymond
7a25a476bd Fix some documentation comments. 2007-04-29 13:13:21 +00:00
Eric S. Raymond
96a1f8c597 Reveal the candidates when macroscope has a name collision. 2007-04-29 12:29:21 +00:00
Eric S. Raymond
c64898235a New macroscope visibility rules are now working for resource files. 2007-04-29 11:15:05 +00:00
Eric S. Raymond
00fd700a48 Minor refactoring step. 2007-04-29 04:25:44 +00:00
Eric S. Raymond
8a48889b2e Prepare for sytematic checking of UMC with new visibility rules. 2007-04-29 03:05:33 +00:00
Eric S. Raymond
685965c5f1 Move macroscope's visibility rules for files and resources...
...much closer to the WML interpreters.  Macro definitions are now
visible only in other files under the same directory they were found
in. Resource files have to be done next.
2007-04-29 03:00:45 +00:00
Eric S. Raymond
bb4c74ec1c Refactored macroscope to use iterators.
This will enable better visibility checking.
2007-04-28 23:25:00 +00:00
Eric S. Raymond
a3dc1b12db Cope with unbalanced #undef statements. 2007-04-28 11:37:03 +00:00
Eric S. Raymond
d1ba962b74 Macroscope now takes multiple directory arguments. 2007-04-28 05:06:08 +00:00
Eric S. Raymond
234ddfe2d9 Macroscope can now handle multiple definitions of macros gracefully,
as long as all but one is local (e.g. scope is terminated by an #undef)
2007-04-27 21:57:30 +00:00
Eric S. Raymond
979264e084 Add some documentation. 2007-04-27 21:37:29 +00:00
Eric S. Raymond
2244511853 Fix the code for extracting the macro reference. 2007-04-27 14:22:55 +00:00
Eric S. Raymond
69e98dc8ca Move report header before parsing...
...so messages to stderr happen in the right order.
2007-04-27 11:01:38 +00:00
Eric S. Raymond
5f3b1fd333 Avoid an odd glitch that causes some false messages abot duplicates. 2007-04-27 04:43:09 +00:00
Eric S. Raymond
aa9dab7f6e Avoid a name collision between two lich portraits that are tinted differently. 2007-04-27 04:02:04 +00:00
Eric S. Raymond
bc010743f6 And more documentation. 2007-04-26 21:29:30 +00:00
Eric S. Raymond
2add57a040 Add some documentation. 2007-04-26 21:28:02 +00:00
Eric S. Raymond
b9c08ea5d0 Warn of duplicated reference names. 2007-04-26 19:14:46 +00:00
Eric S. Raymond
ecebe4f1cf More incremental improvements. More UMC resource conversions. 2007-04-26 13:46:09 +00:00
Eric S. Raymond
ae131e8450 Fix a brown-paper-bag bug introduced two commits back. 2007-04-26 12:22:55 +00:00
Eric S. Raymond
8a2885abc8 Don't crap out on the ill-formed Rogue_RPG map. 2007-04-26 11:26:21 +00:00
Eric S. Raymond
6afa7e61bb Better handling of one-line maps. 2007-04-26 10:25:28 +00:00
Eric S. Raymond
ba9b7e48e4 Handle ill-formed one-line maps more gracefully. 2007-04-26 10:15:12 +00:00
Eric S. Raymond
07fd01f3cd More incremental improvements to macroscope and upconvert. 2007-04-26 08:55:47 +00:00