]> sourceware.org Git - automake.git/commitdiff
* aclocal.in (write_aclocal): Don't write aclocal.m4 with
authorAkim Demaille <akim@epita.fr>
Mon, 23 Oct 2000 18:58:33 +0000 (18:58 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 23 Oct 2000 18:58:33 +0000 (18:58 +0000)
CRLFs. This circumvents a bug in Cygwin bash.

* automake.in (generate_makefile): Don't write Makefile.in
files with CRLFs, as it causes problems for the dependency-file
extraction in AM_OUTPUT_DEPENDENCY_COMMANDS.

ChangeLog
aclocal.in
automake.in

index aaed042ce2c0058aadb555f92fe58ebb970d97c7..52037eef7d1d40595c8c84d71f171c5bac0f11a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2000-10-23  Morten Eriksen  <mortene@sim.no>
+
+       * aclocal.in (write_aclocal): Don't write aclocal.m4 with
+       CRLFs. This circumvents a bug in Cygwin bash.
+
+       * automake.in (generate_makefile): Don't write Makefile.in
+       files with CRLFs, as it causes problems for the dependency-file
+       extraction in AM_OUTPUT_DEPENDENCY_COMMANDS.
+
 2000-10-19  Alex Hornby  <alex@anvil.co.uk>
 
        * automake.in (handle_merge_targets): Allow parallel install
index 7c9e9a2eb789613ea4eb34ce6b5d46b9aec6c191..d35a64a513eb1c3255ed4cab2d8da48c730bb7a2 100644 (file)
@@ -427,6 +427,13 @@ sub write_aclocal
 
     print STDERR "Writing $output_file\n" if $verbosity;
 
+
+    # In case we're running under MSWindows, don't write with CRLF.
+    # (This circumvents a bug in at least Cygwin bash where the shell
+    # parsing fails on lines ending with the continuation character '\'
+    # 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";
index 89d2619e8fadab227a75c6438ef46254dc4bcb72..d8254e5ded6aa1d07dc9c0311b585a3ff745a5ab 100755 (executable)
@@ -690,6 +690,11 @@ sub generate_makefile
     }
     print "automake: creating ", $makefile, ".in\n" if $verbose;
 
+    # In case we're running under MSWindows, don't write with CRLF
+    # (as it causes problems for the dependency-file extraction in
+    # AM_OUTPUT_DEPENDENCY_COMMANDS).
+    binmode GM_FILE;
+
     print GM_FILE $output_vars;
     # We make sure that `all:' is the first target.
     print GM_FILE $output_all;
This page took 0.037491 seconds and 5 git commands to generate.