]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
2001-12-30 Alan Modra <amodra@bigpond.net.au>
authorTom Tromey <tromey@redhat.com>
Sun, 30 Dec 2001 20:54:21 +0000 (20:54 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 30 Dec 2001 20:54:21 +0000 (20:54 +0000)
* automake.in (generate_makefile): Unlink output file before
opening so that any hard links are not changed.

ChangeLog
THANKS
automake.in

index d4e190349b2d1529b3e0b1483db8e1f24f23a629..0ef5c6743f779f4c38571361419172d70c7f37bd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-30  Alan Modra  <amodra@bigpond.net.au>
+
+       * automake.in (generate_makefile): Unlink output file before
+       opening so that any hard links are not changed.
+
 2001-12-30  Tom Tromey  <tromey@redhat.com>
 
        * tests/pr220.test: Use `required' to pick up gcc.
diff --git a/THANKS b/THANKS
index 61d117152adf17590a9124f5042375055f932e0b..2f7ad4e9096115a2e93d776701028646dcc42e11 100644 (file)
--- 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
index 792c25e7f24fc3a7ec7f4df00e62ab8d6d41c175..3095b801a1dd4150ad439c80bbd66a32a91a1f67 100755 (executable)
@@ -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";