From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6935CC48BE6 for ; Wed, 16 Jun 2021 12:26:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5336D6135C for ; Wed, 16 Jun 2021 12:26:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232825AbhFPM2r (ORCPT ); Wed, 16 Jun 2021 08:28:47 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:11039 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231180AbhFPM2p (ORCPT ); Wed, 16 Jun 2021 08:28:45 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G4kqw1L0hzZdjS; Wed, 16 Jun 2021 20:23:40 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 16 Jun 2021 20:26:35 +0800 Received: from thunder-town.china.huawei.com (10.174.179.0) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 16 Jun 2021 20:26:34 +0800 From: Zhen Lei To: Joe Perches , Andrew Morton , Nicolas Dichtel , Jason Baron , Stefani Seibold , Jacob Keller , Thomas Graf , Herbert Xu , Jens Axboe , Petr Mladek , Sergey Senozhatsky , "Andy Shevchenko" , Rasmus Villemoes , linux-kernel CC: Zhen Lei Subject: [PATCH v2 0/3] scripts/spelling.txt: add some spelling pairs and reorder Date: Wed, 16 Jun 2021 20:25:04 +0800 Message-ID: <20210616122507.896-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.179.0] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v1 --> v2: 1) Avoid hard coding, dynamic identification of comment lines 2) Avoid creating a temporary file 3) Sort based on "correction", then "mistake" 4) Add "export LC_ALL=C" v1: Add spelling_sanitizer.sh and use it to reorder, then add some spelling "mistake||correction" pairs. Zhen Lei (3): scripts: add spelling_sanitizer.sh script scripts/spelling.txt: sort and remove duplicates scripts/spelling.txt: add some spelling "mistake||correction" pairs scripts/spelling.txt | 1220 +++++++++++++++++---------------- scripts/spelling_sanitizer.sh | 27 + 2 files changed, 674 insertions(+), 573 deletions(-) create mode 100755 scripts/spelling_sanitizer.sh -- 2.25.1