home *** CD-ROM | disk | FTP | other *** search
- #! /bin/csh
- # shell for running texspell which is TeX and LaTeX's spell
- # Author: Kamal Al-Yahya 1984
-
- set flag =
-
- if ($#argv == 0) then
- echo "usage: texspell [-w] file"
- exit (-1)
- endif
- switch ($argv[1])
- case -w:
- set flag = -w
- if ($#argv == 1) then
- echo "usage: texspell [-w] file"
- exit (-1)
- endif
- shift argv
- endsw
-
- while ($#argv > 0)
- if -e $argv[1] then
- detex $flag $argv[1] | spell
- else
- echo "Can't open $argv[1]"
- exit(-1)
- endif
- shift argv
- end
- exit(0)
-