This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
mktables: if modify during run, regen tables
authorKarl Williamson <public@khwilliamson.com>
Sun, 10 Oct 2010 15:28:09 +0000 (09:28 -0600)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 12 Oct 2010 20:52:46 +0000 (13:52 -0700)
commitcdcef19ac3c5f2087c104d3b422ed1c0dd41a1f2
tree46fdadae784c20ad86f84f3ad0251bb34284e536
parentdff6c0469fc280def8f226ca670a752b0faff872
mktables: if modify during run, regen tables

This bug has bitten me enough times that I decided to fix it.  It would
only be applicable to someone who is developing mktables, and making
changes to it while the program is running.  Due to the complicated
nature of the dependencies of mktables, it basically functions as its
own make command, knowing when to rebuild or not based on the
modification times of itself and its input and output files.
Previously, it did not account for changes to itself made while running,
so it would think that it wouldn't have to rebuild, even though it did.

I solve this problem by keeping track of the time the process started,
and storing it in mktables.lst.  If something has changed since then,
then the files need to be rebuilt.
lib/unicore/mktables