From: Tom Tromey Date: Tue, 27 Apr 1999 21:27:08 +0000 (+0000) Subject: * automake.in (read_am_file): Insert a backslash before a trailing X-Git-Tag: merging-into-user-dep-gen~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bad4f03739e95821ee0c8111bfa6430e736a878;p=thirdparty%2Fautomake.git * automake.in (read_am_file): Insert a backslash before a trailing newline. Fixes pluseq8.test. --- diff --git a/ChangeLog b/ChangeLog index 0f78fcaa0..3141cdc31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1999-04-27 Tom Tromey + * automake.in (read_am_file): Insert a backslash before a trailing + newline. Fixes pluseq8.test. + * automake.in (MACRO_PATTERN): Allow digits and `_' to start a macro name. (check_canonical_spelling): Don't insert `AM' before macro name diff --git a/automake.in b/automake.in index f88ec3244..754ab9e04 100755 --- a/automake.in +++ b/automake.in @@ -6344,6 +6344,12 @@ sub read_am_file { $contents{$last_var_name} = $am_var_defs{$last_var_name}; } + if (substr ($contents{$last_var_name}, -1) eq "\n") + { + # Insert a backslash before a trailing newline. + $contents{$last_var_name} + = substr ($contents{$last_var_name}, 0, -1) . "\\\n"; + } $contents{$last_var_name} .= ' ' . $value; } else