[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unlink Makefile.in
From: |
Alan Modra |
Subject: |
unlink Makefile.in |
Date: |
Fri, 23 Nov 2001 17:09:38 +1030 |
User-agent: |
Mutt/1.3.17i |
As http://sources.redhat.com/ml/autoconf-patches/2001-11/msg00081.html
does for autoconf, this patch does for automake.
ChangeLog
* automake.in (generate_makefile): Unlink output file before
opening so that any hard links are not changed.
--
Alan Modra
Index: automake.in
===================================================================
RCS file: /cvs/automake/automake/automake.in,v
retrieving revision 1.1239
diff -u -p -r1.1239 automake.in
--- automake.in 2001/11/19 12:32:39 1.1239
+++ automake.in 2001/11/23 04:09:22
@@ -1309,6 +1309,11 @@ sub generate_makefile
}
}
+ if (-e "$out_file")
+ {
+ unlink ($out_file)
+ or die "$me: cannot remove $out_file: $!\n";
+ }
my $gm_file = new Automake::XFile "> $out_file";
verbose "creating ", $makefile, ".in";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- unlink Makefile.in,
Alan Modra <=