This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
ensure 'make' updates all necessary files
authorJesse Luehrs <doy@tozt.net>
Mon, 18 Jun 2012 21:17:33 +0000 (16:17 -0500)
committerJesse Luehrs <doy@tozt.net>
Mon, 18 Jun 2012 22:10:26 +0000 (17:10 -0500)
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/

Porting/sync-with-cpan

index 2c66f85..f6f3aeb 100755 (executable)
@@ -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;