public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Tom de Vries <vries@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] [gdb/contrib] Improve words extraction in words.sh script
Date: Fri, 22 Nov 2019 15:23:00 -0000	[thread overview]
Message-ID: <20191122152337.126731.qmail@sourceware.org> (raw)

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:]' \


                 reply	other threads:[~2019-11-22 15:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191122152337.126731.qmail@sourceware.org \
    --to=vries@sourceware.org \
    --cc=gdb-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).