aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
parentf618007364b84739f6f8663c1c634fb47bbc6732 (diff)
downloadbinutils-85e7588dc4b191326f90d4e2358566d9cc14242a.zip
binutils-85e7588dc4b191326f90d4e2358566d9cc14242a.tar.gz
binutils-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')
-rw-r--r--gdb/ChangeLog4
-rwxr-xr-xgdb/contrib/words.sh3
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 25c63c7..93258c3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2019-11-22 Tom de Vries <tdevries@suse.de>
+ * contrib/words.sh: Improve words extraction.
+
+2019-11-22 Tom de Vries <tdevries@suse.de>
+
* contrib/words.sh: Combine sed invocations.
2019-11-21 Christian Biesinger <cbiesinger@google.com>
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:]' \