mirror of
https://github.com/benjaminion/upgrading-ethereum-book.git
synced 2026-01-09 14:38:08 -05:00
Add script to sanitise spellings list
This commit is contained in:
26
bin/util/check_spellings_list.sh
Executable file
26
bin/util/check_spellings_list.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Sanitise the spellings list by finding any unused entries
|
||||
|
||||
check=$(dirname "$0")/../build/spellcheck.sh
|
||||
source=../../src/book.md
|
||||
words=../../src/spellings.txt
|
||||
|
||||
# Pre-requisite is to pass a normal spell check (no words missing)
|
||||
output=$($check $source $words)
|
||||
if [[ "$output" != "" ]]
|
||||
then
|
||||
echo "Existing spelling errors need to be fixed:"
|
||||
echo $output
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Now spell check against an empty list and save the output
|
||||
tmpin=$(mktemp)
|
||||
tmpout=$(mktemp)
|
||||
|
||||
$check $source $tmpin | awk '{print $3}' | sort -u >> $tmpout
|
||||
|
||||
diff $tmpout $words
|
||||
|
||||
rm -f $tmpin $tmpout
|
||||
@@ -58,6 +58,7 @@ ETC's
|
||||
ETH
|
||||
ETHconomics
|
||||
Elowsson
|
||||
Elowsson's
|
||||
Endianness
|
||||
Eth
|
||||
EthStaker
|
||||
@@ -89,11 +90,13 @@ JSON
|
||||
Jacek's
|
||||
Joachim
|
||||
Keccak
|
||||
Kyne
|
||||
Kyne's
|
||||
LMD
|
||||
Lamport
|
||||
Lamport's
|
||||
Lifecycle
|
||||
Liskov
|
||||
Liskov's
|
||||
Liveness
|
||||
Lookahead
|
||||
MEV
|
||||
@@ -157,7 +160,6 @@ Serialization
|
||||
Serialize
|
||||
Shacham
|
||||
Shapovalov
|
||||
Sharding
|
||||
Shostak
|
||||
Signedness
|
||||
Slashings
|
||||
@@ -274,7 +276,6 @@ misbehaviours
|
||||
misconfiguration
|
||||
modularity
|
||||
monocultures
|
||||
num
|
||||
parallelise
|
||||
parallelising
|
||||
parameterises
|
||||
@@ -329,7 +330,6 @@ uptime
|
||||
validator
|
||||
validator's
|
||||
validators
|
||||
vals
|
||||
verifiability
|
||||
verifiably
|
||||
verifier
|
||||
|
||||
Reference in New Issue
Block a user