]> sourceware.org Git - automake.git/commitdiff
1999-01-11 Marcus G. Daniels <mgd@chama.santafe.edu>
authorTom Tromey <tromey@redhat.com>
Mon, 11 Jan 1999 14:07:32 +0000 (14:07 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 11 Jan 1999 14:07:32 +0000 (14:07 +0000)
* automake.in (PATH_PATTERN): New variable:
(INCLUDE_PATTERN): Use it.  Ignore all include commands using
symbols besides $(top_srcdir) and $(srcdir).

ChangeLog
automake.in

index 8f17266d326c0c70addf42b429638d876d8c7ad9..71bd7da120b8393419b01eb08ec1a97582416380 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1999-01-11  Marcus G. Daniels  <mgd@chama.santafe.edu>
+
+       * automake.in (PATH_PATTERN): New variable:
+       (INCLUDE_PATTERN): Use it.  Ignore all include commands using 
+       symbols besides $(top_srcdir) and $(srcdir).
+
 1999-01-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * automake.in (handle_dist_worker): avoid failure in `make dist'
index c3edae8b4351a247e6ae323656982daaf4f211ad..bd5f4f842a1c402417277945f4130aef52762de7 100755 (executable)
@@ -47,8 +47,9 @@ $GNITS_VERSION_PATTERN = "[0-9]+\\.[0-9]+([a-z]|\\.[0-9]+)?";
 $IF_PATTERN = "^if[ \t]+\([A-Za-z][A-Za-z0-9_]*\)[ \t]*\(#.*\)?\$";
 $ELSE_PATTERN = "^else[ \t]*\(#.*\)?\$";
 $ENDIF_PATTERN = "^endif[ \t]*\(#.*\)?\$";
+$PATH_PATTERN='(\\w|/|\\.)+';
 # This will pass through anything not of the prescribed form.
-$INCLUDE_PATTERN = "^include[ \t]+((\\\$\\\(top_srcdir\\\)/[^ \t\n]+)|(\\\$\\\(srcdir\\\)/[^ \t\n]+)|([^/][^\\\ \t]+))[ \t]*(#.*)?\$";
+$INCLUDE_PATTERN = "^include[ \t]+((\\\$\\\(top_srcdir\\\)/${PATH_PATTERN})|(\\\$\\\(srcdir\\\)/${PATH_PATTERN})|([^/\\\$]${PATH_PATTERN}))[ \t]*(#.*)?\$";
 
 # Some regular expressions.  One reason to put them here is that it
 # makes indentation work better in Emacs.
This page took 0.045098 seconds and 5 git commands to generate.