Regular expressions in shell scripts on MacOS are inconsistent... again. :-( Fixing...
authorMorgan Deters <mdeters@gmail.com>
Wed, 28 Sep 2011 18:46:29 +0000 (18:46 +0000)
committerMorgan Deters <mdeters@gmail.com>
Wed, 28 Sep 2011 18:46:29 +0000 (18:46 +0000)
src/util/Makefile.am

index f3aba34cd6044455a77ddbf8ae8a47f841877dc4..f5a3b7d00a274315d77afeb80d7c03c9801f5da0 100644 (file)
@@ -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 += \