]> sourceware.org Git - automake.git/commitdiff
* aclocal.in (write_aclocal): Set ``binmode'' after file has been
authorAkim Demaille <akim@epita.fr>
Thu, 16 Nov 2000 11:07:36 +0000 (11:07 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 16 Nov 2000 11:07:36 +0000 (11:07 +0000)
opened, otherwise it has no effect.

ChangeLog
aclocal.in

index 52037eef7d1d40595c8c84d71f171c5bac0f11a6..03dfe4975d443835fbcaf3f39f7f0e33a057d0bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-16  Morten Eriksen  <mortene@sim.no>
+
+       * aclocal.in (write_aclocal): Set ``binmode'' after file has been
+       opened, otherwise it has no effect.
+
 2000-10-23  Morten Eriksen  <mortene@sim.no>
 
        * aclocal.in (write_aclocal): Don't write aclocal.m4 with
index d35a64a513eb1c3255ed4cab2d8da48c730bb7a2..901937db1edf05cc9e6b686c7f5850cc8f5f5865 100644 (file)
@@ -427,6 +427,8 @@ sub write_aclocal
 
     print STDERR "Writing $output_file\n" if $verbosity;
 
+    open (ACLOCAL, "> " . $output_file)
+       || die "aclocal: couldn't open \`$output_file' for writing: $!\n";
 
     # In case we're running under MSWindows, don't write with CRLF.
     # (This circumvents a bug in at least Cygwin bash where the shell
@@ -434,8 +436,6 @@ sub write_aclocal
     # and CRLF.)
     binmode ACLOCAL;
 
-    open (ACLOCAL, "> " . $output_file)
-       || die "aclocal: couldn't open \`$output_file' for writing: $!\n";
     print ACLOCAL "# $output_file generated automatically by aclocal $VERSION\n";
     print ACLOCAL "\
 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000
This page took 0.033356 seconds and 5 git commands to generate.