From: Tom de Vries Date: Fri, 22 Nov 2019 15:23:22 +0000 (+0100) Subject: [gdb/contrib] Improve words extraction in words.sh script X-Git-Tag: binutils-2_34~713 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85e7588dc4b191326f90d4e2358566d9cc14242a;p=thirdparty%2Fbinutils-gdb.git [gdb/contrib] Improve words extraction in words.sh script Remove more punctuation and quoting in words.sh script. gdb/ChangeLog: 2019-11-22 Tom de Vries * contrib/words.sh: Improve words extraction. Change-Id: I1d9eea165731af4e6c4e1c7e09aed9b07af6395c --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 25c63c76589..93258c3d867 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2019-11-22 Tom de Vries + + * contrib/words.sh: Improve words extraction. + 2019-11-22 Tom de Vries * contrib/words.sh: Combine sed invocations. diff --git a/gdb/contrib/words.sh b/gdb/contrib/words.sh index 8c4fdd072f7..ec8bcd06cbf 100755 --- a/gdb/contrib/words.sh +++ b/gdb/contrib/words.sh @@ -115,9 +115,10 @@ awk \ -f "$awkfile" \ -- "$@" \ | sed \ - -e 's/[%^$~#{}`&=@,. \t\/_()|<>\+\*-]/\n/g' \ + -e 's/[!"?;:%^$~#{}`&=@,. \t\/_()|<>\+\*-]/\n/g' \ -e 's/\[/\n/g' \ -e 's/\]/\n/g' \ + -e "s/'/\n/g" \ -e 's/[0-9][0-9]*/\n/g' \ -e 's/[ \t]*//g' \ | tr '[:upper:]' '[:lower:]' \