blob: 073ab2df25fb73d203e9b7628830f3ea0da26de9 [file] [log] [blame]
rscd49a2e42004-03-09 12:45:12 +00001#!/bin/rc
2
3spellflags=()
4deroffargs=()
5fflag=''
6for(x){
7 switch($x){
8 case -[abcvx]
9 spellflags=($spellflags $x)
10 case -f
11 fflag=$x
12 case *
13 if(~ $fflag -f) {
14 spellflags=($spellflags -f $x)
15 fflag=''
16 }
17 if not deroffargs=($deroffargs $x)
18 }
19}
20
21deroff -w $deroffargs | sort -u | aux/sprog $spellflags