[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch: new test and fix for `.c++' extension
From: |
Tom Tromey |
Subject: |
Patch: new test and fix for `.c++' extension |
Date: |
15 Jul 2001 16:18:42 -0600 |
This is sort of hacky, but I'm checking it in nevertheless.
It tests for and fixes a bug when using the `.c++' extension.
Tom
Index: ChangeLog
from Tom Tromey <address@hidden>
Report from Ralf Corsepius:
* automake.in (TARGET_PATTERN): Add `+' as valid character.
(SUFFIX_RULE_PATTERN): Likewise.
* tests/Makefile.am (TESTS): Added cxx.test.
* tests/cxx.test: New file.
Index: automake.in
===================================================================
RCS file: /cvs/automake/automake/automake.in,v
retrieving revision 1.1150
diff -u -r1.1150 automake.in
--- automake.in 2001/07/14 17:15:03 1.1150
+++ automake.in 2001/07/15 21:52:43
@@ -133,13 +133,13 @@
my $IGNORE_PATTERN = '^\s*##([^#\n].*)?\n';
my $WHITE_PATTERN = '^\s*$';
my $COMMENT_PATTERN = '^#';
-my $TARGET_PATTERN='[$a-zA-Z_.][-.a-zA-Z0-9_(){}/$]*';
+my $TARGET_PATTERN='[$a-zA-Z_.][-.a-zA-Z0-9_(){}/$+]*';
# A rule has three parts: a list of targets, a list of dependencies,
# and optionally actions.
my $RULE_PATTERN =
"^($TARGET_PATTERN(?:(?:\\\\\n|\\s)+$TARGET_PATTERN)*) *:([^=].*|)\$";
-my $SUFFIX_RULE_PATTERN = '^\.([a-zA-Z0-9]+)\.([a-zA-Z0-9]+)$';
+my $SUFFIX_RULE_PATTERN = '^\.([a-zA-Z0-9+]+)\.([a-zA-Z0-9+]+)$';
# Only recognize leading spaces, not leading tabs. If we recognize
# leading tabs here then we need to make the reader smarter, because
# otherwise it will think rules like `foo=bar; \' are errors.
Index: tests/Makefile.am
===================================================================
RCS file: /cvs/automake/automake/tests/Makefile.am,v
retrieving revision 1.321
diff -u -r1.321 Makefile.am
--- tests/Makefile.am 2001/07/05 01:19:35 1.321
+++ tests/Makefile.am 2001/07/15 21:52:43
@@ -82,6 +82,7 @@
confvar2.test \
copy.test \
ctarget1.test \
+cxx.test \
cxxansi.test \
cxxcpp.test \
cxxlibobj.test \
Index: tests/Makefile.in
===================================================================
RCS file: /cvs/automake/automake/tests/Makefile.in,v
retrieving revision 1.421
diff -u -r1.421 Makefile.in
--- tests/Makefile.in 2001/07/05 01:19:35 1.421
+++ tests/Makefile.in 2001/07/15 21:52:44
@@ -148,6 +148,7 @@
confvar2.test \
copy.test \
ctarget1.test \
+cxx.test \
cxxansi.test \
cxxcpp.test \
cxxlibobj.test \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Patch: new test and fix for `.c++' extension,
Tom Tromey <=