aboutsummaryrefslogtreecommitdiff
path: root/gdb/contrib
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2019-11-22 16:23:22 +0100
committerTom de Vries <tdevries@suse.de>2019-11-22 16:23:22 +0100
commit85e7588dc4b191326f90d4e2358566d9cc14242a (patch)
treeabedf4d5fe9b3cecb28fdfc6bf90d8c730318045 /gdb/contrib
parentf618007364b84739f6f8663c1c634fb47bbc6732 (diff)
downloadgdb-85e7588dc4b191326f90d4e2358566d9cc14242a.zip
gdb-85e7588dc4b191326f90d4e2358566d9cc14242a.tar.gz
gdb-85e7588dc4b191326f90d4e2358566d9cc14242a.tar.bz2
[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 <tdevries@suse.de> * contrib/words.sh: Improve words extraction. Change-Id: I1d9eea165731af4e6c4e1c7e09aed9b07af6395c
Diffstat (limited to 'gdb/contrib')
-rwxr-xr-xgdb/contrib/words.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/contrib/words.sh b/gdb/contrib/words.sh
index 8c4fdd0..ec8bcd0 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:]' \