]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* lib/Automake/FileUtils.pm (&update_file): Be sure not to leave
authorAkim Demaille <akim@epita.fr>
Tue, 9 Sep 2003 12:27:28 +0000 (12:27 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 9 Sep 2003 12:27:28 +0000 (12:27 +0000)
trailing files.

ChangeLog
lib/Automake/FileUtils.pm

index 378c30ca5c89ad5cc9b050c5d182e7e4faf20e28..b78e67afaf4382125e3ccf14fdc1635797b56a34 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-09-09  Akim Demaille  <akim@epita.fr>
+
+       * lib/Automake/FileUtils.pm (&update_file): Be sure not to leave
+       trailing files.
+
 2003-09-07  Alexandre Duret-Lutz  <adl@gnu.org>
 
        Changes to m4_included files should also cause aclocal.m4 to change.
index c860b65f9e1cb36e61ad782c9302873f8aa9d070..0050120d2fd6ba02f220ef2478e4fd849c445f6d 100644 (file)
@@ -153,6 +153,8 @@ sub update_file ($$)
     {
       # File didn't change, so don't update its mod time.
       msg 'note', "`$to' is unchanged";
+      unlink ($from)
+        or fatal "cannot not remove $from: $!";
       return
     }