Various fixes, add spell.
This commit is contained in:
parent
fb7cc74a92
commit
d49a2e4801
12 changed files with 1452 additions and 33 deletions
21
src/cmd/spell/spell.rc
Executable file
21
src/cmd/spell/spell.rc
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/rc
|
||||
|
||||
spellflags=()
|
||||
deroffargs=()
|
||||
fflag=''
|
||||
for(x){
|
||||
switch($x){
|
||||
case -[abcvx]
|
||||
spellflags=($spellflags $x)
|
||||
case -f
|
||||
fflag=$x
|
||||
case *
|
||||
if(~ $fflag -f) {
|
||||
spellflags=($spellflags -f $x)
|
||||
fflag=''
|
||||
}
|
||||
if not deroffargs=($deroffargs $x)
|
||||
}
|
||||
}
|
||||
|
||||
deroff -w $deroffargs | sort -u | aux/sprog $spellflags
|
||||
Loading…
Add table
Add a link
Reference in a new issue