From 9293885dad0268629fe840d3c3f2a1f65de38b5f Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 9 Sep 2003 12:27:28 +0000 Subject: [PATCH] * lib/Automake/FileUtils.pm (&update_file): Be sure not to leave trailing files. --- ChangeLog | 5 +++++ lib/Automake/FileUtils.pm | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 378c30c..b78e67a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-09-09 Akim Demaille + + * lib/Automake/FileUtils.pm (&update_file): Be sure not to leave + trailing files. + 2003-09-07 Alexandre Duret-Lutz Changes to m4_included files should also cause aclocal.m4 to change. diff --git a/lib/Automake/FileUtils.pm b/lib/Automake/FileUtils.pm index c860b65..0050120 100644 --- a/lib/Automake/FileUtils.pm +++ b/lib/Automake/FileUtils.pm @@ -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 } -- 2.7.4