* 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 378c30c..b78e67a 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 c860b65..0050120 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
     }