From: Tom Tromey Date: Sun, 13 May 2001 00:46:52 +0000 (+0000) Subject: 2001-05-12 Raja R Harinath X-Git-Tag: Release-1-4f~47 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=7a65f6986c163402963c0dfa6252a4718d181333;p=automake.git 2001-05-12 Raja R Harinath * automake.in (ASSIGNMENT_PATTERN): Make variable-name pattern stop at the first '='. * tests/Makefile.am (TESTS): Added vars.test. * tests/vars.test: New file. --- diff --git a/ChangeLog b/ChangeLog index 1338ae4d..e92c195f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-05-12 Raja R Harinath + + * automake.in (ASSIGNMENT_PATTERN): Make variable-name pattern + stop at the first '='. + * tests/Makefile.am (TESTS): Added vars.test. + * tests/vars.test: New file. + 2001-05-12 Akim Demaille * automake.in (&handle_single_transform_list): Simplify diff --git a/automake.in b/automake.in index e1707e80..8f3062df 100755 --- a/automake.in +++ b/automake.in @@ -125,7 +125,7 @@ my $SUFFIX_RULE_PATTERN = '^\.([a-zA-Z0-9]+)\.([a-zA-Z0-9]+)$'; # leading tabs here then we need to make the reader smarter, because # otherwise it will think rules like `foo=bar; \' are errors. my $MACRO_PATTERN = '^[A-Za-z0-9_@]+$'; -my $ASSIGNMENT_PATTERN = '^ *([^ \t]*)\s*([:+]?)=\s*(.*)$'; +my $ASSIGNMENT_PATTERN = '^ *([^ \t=]*)\s*([:+]?)=\s*(.*)$'; # This pattern recognizes a Gnits version id and sets $1 if the # release is an alpha release. We also allow a suffix which can be # used to extend the version number with a "fork" identifier. diff --git a/tests/Makefile.am b/tests/Makefile.am index 0a2a455d..51ac2d35 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -271,6 +271,7 @@ texinfo8.test \ texinfo9.test \ texinfo10.test \ unused.test \ +vars.test \ vartar.test \ version.test \ version2.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index a6f1a94d..9bda144c 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -279,7 +279,6 @@ pluseq8.test \ ppf77.test \ pr2.test \ pr9.test \ -pr19.test \ pr72.test \ pr87.test \ prefix.test \ @@ -344,6 +343,7 @@ texinfo8.test \ texinfo9.test \ texinfo10.test \ unused.test \ +vars.test \ vartar.test \ version.test \ version2.test \ diff --git a/tests/vars.test b/tests/vars.test new file mode 100755 index 00000000..2f71a49f --- /dev/null +++ b/tests/vars.test @@ -0,0 +1,15 @@ +#! /bin/sh + +# Test various variable definitions that include an '=' sign +# From Raja R Harinath + +. $srcdir/defs || exit 1 + +cat > Makefile.am << 'END' +MY_FLAGS_1=-DABC=345 +MY_FLAGS_2= -DABC=345 +MY_FLAGS_3 =-DABC=345 +MY_FLAGS_4 = -DABC=345 +END + +$AUTOMAKE