dpdk/devtools/build-dict.sh
<<
>>
Prefs
   1#! /bin/sh -e
   2# SPDX-License-Identifier: BSD-3-Clause
   3# Copyright 2020 Mellanox Technologies, Ltd
   4
   5# Build a spelling dictionary suitable for DPDK_CHECKPATCH_CODESPELL
   6
   7# path to local clone of https://github.com/codespell-project/codespell.git
   8codespell_path=$1
   9
  10# concatenate codespell dictionaries, except GB/US one
  11for suffix in .txt _code.txt _informal.txt _names.txt _rare.txt _usage.txt ; do
  12        cat $codespell_path/codespell_lib/data/dictionary$suffix
  13done |
  14
  15# remove too short or wrong checks
  16sed '/^..->/d' |
  17sed '/^uint->/d' |
  18sed "/^doesn'->/d" |
  19sed '/^wasn->/d' |
  20
  21# print to stdout
  22cat
  23