From patchwork Fri Nov 15 09:53:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Simon Marchi (Code Review)" X-Patchwork-Id: 35934 Received: (qmail 57246 invoked by alias); 15 Nov 2019 09:53:21 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 57189 invoked by uid 89); 15 Nov 2019 09:53:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=punctuation, 1269, HContent-Transfer-Encoding:8bit X-HELO: mx1.osci.io Received: from polly.osci.io (HELO mx1.osci.io) (8.43.85.229) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Nov 2019 09:53:19 +0000 Received: by mx1.osci.io (Postfix, from userid 994) id BBDF62032F; Fri, 15 Nov 2019 04:53:17 -0500 (EST) Received: from gnutoolchain-gerrit.osci.io (gnutoolchain-gerrit.osci.io [8.43.85.239]) by mx1.osci.io (Postfix) with ESMTP id BC961204A7 for ; Fri, 15 Nov 2019 04:53:15 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by gnutoolchain-gerrit.osci.io (Postfix) with ESMTP id 9435C20AF6 for ; Fri, 15 Nov 2019 04:53:15 -0500 (EST) X-Gerrit-PatchSet: 1 Date: Fri, 15 Nov 2019 04:53:15 -0500 From: "Tom de Vries (Code Review)" To: gdb-patches@sourceware.org Message-ID: Auto-Submitted: auto-generated X-Gerrit-MessageType: newchange Subject: [review] [gdb/contrib] Improve words extraction in words.sh script X-Gerrit-Change-Id: I1d9eea165731af4e6c4e1c7e09aed9b07af6395c X-Gerrit-Change-Number: 655 X-Gerrit-ChangeURL: X-Gerrit-Commit: ce8115447bbd51aa0331633fc8e2897b697e6d4b References: Reply-To: tdevries@suse.de, gdb-patches@sourceware.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Gerrit/3.0.3-76-gf8b6da0ab5 Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/655 ...................................................................... [gdb/contrib] Improve words extraction in words.sh script Remove more punctuation and quoting in words.sh script. gdb/ChangeLog: 2019-11-15 Tom de Vries * contrib/words.sh: Improve words extraction. Change-Id: I1d9eea165731af4e6c4e1c7e09aed9b07af6395c --- M gdb/contrib/words.sh 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/contrib/words.sh b/gdb/contrib/words.sh index e48b82e..a1c2cce 100755 --- a/gdb/contrib/words.sh +++ b/gdb/contrib/words.sh @@ -126,9 +126,10 @@ cat "$@" fi \ | 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:]' \