portable. If a comment line doesn't start with a `#', add it.
* tests/comment6.test: Ensure this is done.
+2002-07-25 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ * automake.in (read_am_file): Escaped newlines in comments are not
+ portable. If a comment line doesn't start with a `#', add it.
+ * tests/comment6.test: Ensure this is done.
+
2002-07-24 Alexandre Duret-Lutz <duret_g@epita.fr>
Fix failures reported by Patrick Welche on NetBSD.
}
elsif ($prev_state == IN_COMMENT)
{
+ # If the line doesn't start with a `#', add it.
+ # We do this because a continuated comment like
+ # # A = foo \
+ # bar \
+ # baz
+ # is not portable. BSD make doesn't honor
+ # escaped newlines in comments.
+ s/^#?/#/;
$comment .= $spacing . $_;
}
else # $prev_state == IN_VAR_DEF
./configure
$MAKE
+grep '# SOME_FILES' Makefile
+grep '# *file3' Makefile
+
cat > Makefile.am << 'EOF'
all-local:
@echo Good
$AUTOMAKE
./configure
$MAKE
+grep '# SOME_FILES' Makefile
+grep '# *file3' Makefile