ASM #16693 - Fix spelling checker suggests swear words
Change-Id: Ie9e5bc5c26b16655185b81cf4b4cf2f758693566 Former-commit-id:86c761c8a4
[formerly83536a6b09
] [formerly11b40e167c
] [formerly6e88d5f39c
[formerly11b40e167c
[formerly 094cb9dba5d6e0da22b32b85dcc5049fd629fe5e]]] Former-commit-id:6e88d5f39c
Former-commit-id: b0530a8b37b27391b06057bbd69660a9aa6f1da7 [formerly9b86fdbd15
] Former-commit-id:7ba6e37a19
This commit is contained in:
parent
c6dbdef498
commit
46d6fe5fe5
2 changed files with 128 additions and 56 deletions
|
@ -36486,8 +36486,6 @@ asseverates
|
|||
asseverating
|
||||
asseveration
|
||||
asseveration's
|
||||
asshole
|
||||
assholes
|
||||
assiduity
|
||||
assiduity's
|
||||
assiduous
|
||||
|
@ -43045,14 +43043,6 @@ bullring
|
|||
bullring's
|
||||
bullrings
|
||||
bulls
|
||||
bullshit
|
||||
bullshit's
|
||||
bullshits
|
||||
bullshitted
|
||||
bullshitter
|
||||
bullshitters
|
||||
bullshitting
|
||||
bullshitting's
|
||||
bullwhip
|
||||
bullwhip's
|
||||
bullwhips
|
||||
|
@ -46512,9 +46502,6 @@ chickening
|
|||
chickenpox
|
||||
chickenpox's
|
||||
chickens
|
||||
chickenshit
|
||||
chickenshit's
|
||||
chickenshits
|
||||
chickpea
|
||||
chickpea's
|
||||
chickpeas
|
||||
|
@ -51166,12 +51153,6 @@ coolly
|
|||
coolness
|
||||
coolness's
|
||||
cools
|
||||
coon
|
||||
coon's
|
||||
coons
|
||||
coonskin
|
||||
coonskin's
|
||||
coonskins
|
||||
coop
|
||||
coop's
|
||||
cooped
|
||||
|
@ -53416,9 +53397,6 @@ cunning
|
|||
cunninger
|
||||
cunningest
|
||||
cunningly
|
||||
cunt
|
||||
cunt's
|
||||
cunts
|
||||
cup
|
||||
cup's
|
||||
cupboard
|
||||
|
@ -68596,15 +68574,6 @@ ftps
|
|||
fuchsia
|
||||
fuchsia's
|
||||
fuchsias
|
||||
fuck
|
||||
fucked
|
||||
fucker
|
||||
fucker's
|
||||
fuckers
|
||||
fuckhead
|
||||
fuckheads
|
||||
fucking
|
||||
fucks
|
||||
fuddle
|
||||
fuddled
|
||||
fuddles
|
||||
|
@ -75273,8 +75242,6 @@ horseradish
|
|||
horseradish's
|
||||
horseradishes
|
||||
horses
|
||||
horseshit
|
||||
horseshit's
|
||||
horseshoe
|
||||
horseshoe's
|
||||
horseshoed
|
||||
|
@ -89871,10 +89838,6 @@ mother's
|
|||
motherboard
|
||||
motherboards
|
||||
mothered
|
||||
motherfucker
|
||||
motherfucker's
|
||||
motherfuckers
|
||||
motherfucking
|
||||
motherhood
|
||||
motherhood's
|
||||
mothering
|
||||
|
@ -91702,9 +91665,6 @@ niggardliness
|
|||
niggardliness's
|
||||
niggardly
|
||||
niggards
|
||||
nigger
|
||||
nigger's
|
||||
niggers
|
||||
niggle
|
||||
niggled
|
||||
niggler
|
||||
|
@ -114184,21 +114144,8 @@ shirtwaist
|
|||
shirtwaist's
|
||||
shirtwaists
|
||||
shirty
|
||||
shit
|
||||
shite
|
||||
shites
|
||||
shitfaced
|
||||
shithead
|
||||
shithead's
|
||||
shitheads
|
||||
shitload
|
||||
shits
|
||||
shitted
|
||||
shittier
|
||||
shittiest
|
||||
shitting
|
||||
shitting's
|
||||
shitty
|
||||
shiv
|
||||
shiv's
|
||||
shiver
|
||||
|
@ -134581,9 +134528,6 @@ woozily
|
|||
wooziness
|
||||
wooziness's
|
||||
woozy
|
||||
wop
|
||||
wop's
|
||||
wops
|
||||
word
|
||||
word's
|
||||
wordage
|
||||
|
|
128
deltaScripts/14.3.1/DR16693/setupDict.sh
Executable file
128
deltaScripts/14.3.1/DR16693/setupDict.sh
Executable file
|
@ -0,0 +1,128 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Clean up platform and users dictionaries.
|
||||
# 09/10/2014 lshi
|
||||
#
|
||||
#platform dictionary(lx, px): /awips2/cave/etc/spelldict
|
||||
#user EDEX dictionary(dx): /awips2/edex/data/utility/cave_static/user/USER/seplldict
|
||||
#user CAVE dictionary(lx/px/dx): /home/USER/caveData/etc/user/USER/spelldict
|
||||
|
||||
#dx (one of dx):
|
||||
#remove all users' CAVE dictionary
|
||||
#cleanup all users' EDEX dictionary
|
||||
#
|
||||
#all others:
|
||||
#clean up platform dictionary
|
||||
#
|
||||
|
||||
user=$(whoami)
|
||||
host=$(hostname)
|
||||
|
||||
edex_user_dir=/awips2/edex/data/utility/cave_static/user/
|
||||
cave_etc=/awips2/cave/etc
|
||||
run_type=0
|
||||
FNAME="spelldict"
|
||||
|
||||
clean () {
|
||||
lines=`cat $1 |wc -l`
|
||||
size=`cat $1 |wc -c`
|
||||
MSG="$1, size=$size, #line=$lines:"
|
||||
LASTWD=$(grep 'zymurgy' $1)
|
||||
if [ $size -eq 1290760 ]
|
||||
then
|
||||
remove $1
|
||||
# elif [ $lines -gt 135553 ]
|
||||
# then
|
||||
# [ $run_type == 1 ] && (cp $1 "$1.bak";
|
||||
# sed -n "135554,${lines}p" "$1.bak" > $1)
|
||||
# let "newlines=${lines}-135553"
|
||||
# echo $MSG modified, \#line=$(( lines-135553 ))
|
||||
elif [ "$LASTWD" ]
|
||||
then
|
||||
line=$(sed -n "/^$LASTWD/=" $1)
|
||||
# echo line=$line
|
||||
[ $run_type == 1 ] && (cp -p $1 "$1.bak"; sed "1, /^$LASTWD/d" "$1.bak" > $1)
|
||||
echo $MSG "modified, #line=$(( lines-line ))"
|
||||
else
|
||||
echo $MSG unchanged
|
||||
fi
|
||||
}
|
||||
|
||||
remove () {
|
||||
lines=`cat $1 |wc -l`
|
||||
size=`cat $1 |wc -c`
|
||||
if [ $run_type == 1 ]
|
||||
then
|
||||
cp -p $1 "$1.bak"
|
||||
[[ $1 == ${cave_etc}* ]] && cat /dev/null > $1 || rm -f $1
|
||||
fi
|
||||
|
||||
action=$([[ $1 == ${cave_etc}* ]] && echo emptied || echo removed )
|
||||
echo "$1, size=$size, #line=$lines: $action"
|
||||
}
|
||||
|
||||
usage () {
|
||||
echo "Option: -dryrun: dry run; -run: do it"
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
||||
[ $# = 0 ] && usage
|
||||
|
||||
[ $1 == -run ] && run_type=1
|
||||
[ $1 == -dryrun ] && run_type=2
|
||||
[ $run_type == 0 ] && usage
|
||||
echo "run_type=$run_type"
|
||||
|
||||
wstype=xxx
|
||||
[ $# == 2 ] && wstype=$2
|
||||
|
||||
if [ -d $edex_user_dir ] && [ $wstype != -lx ]
|
||||
then
|
||||
echo "Clean up users' dictionaries ..."
|
||||
if [ $user != root ]
|
||||
then
|
||||
echo "You must run this script as the user 'root'."
|
||||
exit 1
|
||||
fi
|
||||
for d in $(ls -d /home/*);
|
||||
do
|
||||
f=$d/caveData/etc/user/$(basename $d)/$FNAME
|
||||
[ -f $f ] && remove $f
|
||||
done
|
||||
|
||||
for f in `find $edex_user_dir -maxdepth 2 -name $FNAME`;
|
||||
do
|
||||
clean $f
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -d $cave_etc ] && [ $wstype != -dx ]
|
||||
then
|
||||
f=$cave_etc/$FNAME
|
||||
echo "Clean up the platform dictionary ${f} ..."
|
||||
if [ $user != awips ] && [ $user != root ]
|
||||
then
|
||||
echo "You must run this script as the user 'awips' or 'root'."
|
||||
exit 1
|
||||
fi
|
||||
if [ -f $f ]
|
||||
then
|
||||
clean $f
|
||||
else
|
||||
cat /dev/null > $f
|
||||
chown awips $f
|
||||
chgrp fxalpha $f
|
||||
chmod 644 $f
|
||||
echo $f: created, size=0
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -d $edex_user_dir ] && [ ! -d $cave_etc ]
|
||||
then
|
||||
echo "Please run this script on a 'dx', 'lx', px or 'xt' workstation. "
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
Loading…
Add table
Reference in a new issue