diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-11-05 03:19:53 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-11-05 09:28:53 +0100 |
commit | 92248f4e046ff94f5bb60335f4ee4b853a37870a (patch) | |
tree | 352d0e7c584f87a198896d6e40f122aba0f98ce0 /bin/update_pch.sh | |
parent | bdf7b2715ef7463b46cfdf334cf7699ac063a9b4 (diff) |
update_pch.sh: grep use extended regex
Set the flag explicitly, otherwise it's broken for me.
Change-Id: Iedcbe610ca266bb9fd9b39b8accd274888ab2f15
Diffstat (limited to 'bin/update_pch.sh')
-rwxr-xr-x | bin/update_pch.sh | 4 |
1 files 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 <svtools/sores.hxx>' | \ grep -v -F -e '#include <editeng/eeitemid.hxx>' | \ |