public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/contrib] Improve words extraction in words.sh script
@ 2019-11-22 15:23 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2019-11-22 15:23 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=85e7588dc4b191326f90d4e2358566d9cc14242a
commit 85e7588dc4b191326f90d4e2358566d9cc14242a
Author: Tom de Vries <tdevries@suse.de>
Date: Fri Nov 22 16:23:22 2019 +0100
[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
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/contrib/words.sh | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
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:]' \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-22 15:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-22 15:23 [binutils-gdb] [gdb/contrib] Improve words extraction in words.sh script Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).