Various fixes, add spell.

This commit is contained in:
rsc 2004-03-09 12:45:12 +00:00
parent fb7cc74a92
commit d49a2e4801
12 changed files with 1452 additions and 33 deletions

21
src/cmd/spell/spell.rc Executable file
View 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