From: Jesse Luehrs Date: Mon, 18 Jun 2012 21:17:33 +0000 (-0500) Subject: ensure 'make' updates all necessary files X-Git-Tag: v5.17.1~41 X-Git-Url: https://perl5.git.perl.org/perl5.git/commitdiff_plain/3f7808ebe053a9274d087cc79a5e84105fb8428d ensure 'make' updates all necessary files moving files around doesn't change the mtime, and tarballs store the mtime to use when untarring, so it's possible to end up with an updated file with an mtime before the corresponding file in lib/ --- diff --git a/Porting/sync-with-cpan b/Porting/sync-with-cpan index 2c66f85..f6f3aeb 100755 --- a/Porting/sync-with-cpan +++ b/Porting/sync-with-cpan @@ -228,6 +228,8 @@ say "Unpacking $new_file"; system tar => 'xfz', $new_file; (my $new_dir = $new_file) =~ s/\.tar\.gz//; +# ensure 'make' will update all files +system('find', $new_dir, '-exec', 'touch', '{}', ';'); say "Renaming directories"; rename $pkg_dir => $old_dir;