diff options
author | Akim Demaille <akim@epita.fr> | 2000-11-16 11:07:37 +0000 |
---|---|---|
committer | Akim Demaille <akim@epita.fr> | 2000-11-16 11:07:37 +0000 |
commit | 2d87e0f5c6e3d98119f240538e8daaf760cf9706 (patch) | |
tree | 1565b3ecf6edd31f55bb6d981d54c41cccca2a0d /aclocal.in | |
parent | 6039975ca7438c0671185a19aabb8242f4c518b4 (diff) | |
download | automake-2d87e0f5c6e3d98119f240538e8daaf760cf9706.tar.gz |
* aclocal.in (write_aclocal): Set ``binmode'' after file has been
opened, otherwise it has no effect.
Diffstat (limited to 'aclocal.in')
-rw-r--r-- | aclocal.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aclocal.in b/aclocal.in index d35a64a51..901937db1 100644 --- a/aclocal.in +++ b/aclocal.in @@ -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 |