Subject: | Check timestamp of Build.PL when resuming |
One nice feature of MakeMaker is that it notices when you have altered Makefile.PL. Some code roughly like this should be added to resume()
if (!$self->up_to_date("Build.PL", $self->{properties}{build_script})) {
warn "Warning: Build.PL has been altered. Run 'perl Build.PL' again\n";
}
It's not obvious to me what exactly should be done. The options are:
* print a warning
* die
* re-run Build.PL ourselves (carefully reconstructing args)
Even fancier, we could detect a new version of Module::Build and insist the build script be reconstructed in that case too.