From dd72ee1cc408b3260dbdb47246e8381b4f8db5be Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 30 Dec 2001 20:54:21 +0000 Subject: [PATCH] 2001-12-30 Alan Modra * automake.in (generate_makefile): Unlink output file before opening so that any hard links are not changed. --- ChangeLog | 5 +++++ THANKS | 1 + automake.in | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index d4e19034..0ef5c674 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-12-30 Alan Modra + + * automake.in (generate_makefile): Unlink output file before + opening so that any hard links are not changed. + 2001-12-30 Tom Tromey * tests/pr220.test: Use `required' to pick up gcc. diff --git a/THANKS b/THANKS index 61d11715..2f7ad4e9 100644 --- a/THANKS +++ b/THANKS @@ -5,6 +5,7 @@ people: Adam J. Richter adam@yggdrasil.com Adrian Bunk bunk@fs.tum.de Akim Demaille akim@freefriends.org +Alan Modra amodra@bigpond.net.au Alex Hornby alex@anvil.co.uk Alexander Mai st002279@hrzpub.tu-darmstadt.de Alexander V. Lukyanov lav@yars.free.net diff --git a/automake.in b/automake.in index 792c25e7..3095b801 100755 --- a/automake.in +++ b/automake.in @@ -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"; -- 2.43.5