From 92248f4e046ff94f5bb60335f4ee4b853a37870a Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Tue, 5 Nov 2013 03:19:53 +0100 Subject: update_pch.sh: grep use extended regex Set the flag explicitly, otherwise it's broken for me. Change-Id: Iedcbe610ca266bb9fd9b39b8accd274888ab2f15 --- bin/update_pch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/update_pch.sh b/bin/update_pch.sh index 8e37b0001f77..241ce6c45508 100755 --- a/bin/update_pch.sh +++ b/bin/update_pch.sh @@ -56,7 +56,7 @@ function list_file_includes() ifdepth=0 # filter out only preprocessor lines, get the first and second "words" after the #, # also replace " with @ (would cause trouble when doing echo of the line) - cat "$1" | grep '^\s*#' | sed 's/^\s*#/#/' | sed 's/^\(#\w*\s+\w*\)\s+.*/\1/' | sed 's/"/@/g' | \ + cat "$1" | grep -E '^\s*#' | sed 's/^\s*#/#/' | sed 's/^\(#\w*\s+\w*\)\s+.*/\1/' | sed 's/"/@/g' | \ while read line; do # skip everything surrounded by any #if if echo "$line" | grep -q "#if" ; then @@ -132,7 +132,7 @@ function filter_ignore() # - some sources play ugly #define tricks with editeng/eeitemid.hxx # - jerror.h and jpeglib.h are not self-contained # - service1.hxx/service2.hxx are inside comments in frameworks/ - grep -e '\.h[">]$' -e '\.hpp[">]$' -e '\.hdl[">]$' -e '\.hxx[">]$' -e '^[^\.]*>$' | \ + grep -E -e '\.h[">]$' -e '\.hpp[">]$' -e '\.hdl[">]$' -e '\.hxx[">]$' -e '^[^\.]*>$' | \ grep -v -F -e '#include "gperffasttoken.hxx"' | \ grep -v -F -e '#include ' | \ grep -v -F -e '#include ' | \ -- cgit