From 623e4c71b3ec579a5933b3c65dd1da67b007f6c9 Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Wed, 28 Sep 2011 18:46:29 +0000 Subject: [PATCH] Regular expressions in shell scripts on MacOS are inconsistent... again. :-( Fixing a problem with Debug_tags and Trace_tags, closes bug #281 --- src/util/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/Makefile.am b/src/util/Makefile.am index f3aba34cd..f5a3b7d00 100644 --- a/src/util/Makefile.am +++ b/src/util/Makefile.am @@ -114,9 +114,9 @@ endif .PHONY: Debug_tags.tmp Trace_tags.tmp Debug_tags.tmp Trace_tags.tmp: $(AM_V_GEN)\ - grep '\<$(@:_tags.tmp=) *( *\".*\" *)' \ + grep '[^a-zA-Z0-9_]$(@:_tags.tmp=) *( *\".*\" *)' \ `find @srcdir@/../ -name "*.cpp" -or -name "*.h" -or -name "*.cc" -or -name "*.g"` | \ - sed 's/.*\<$(@:_tags.tmp=) *( *\"\([^"]*\)\".*/\1/g' | sort | uniq >"$@" + sed 's/.*[^a-zA-Z0-9_]$(@:_tags.tmp=) *( *\"\([^"]*\)\".*/\1/g' | sort | uniq >"$@" if CVC4_CLN_IMP libutil_la_SOURCES += \ -- 2.30.2