diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/kamal/texspell |
Initial commit
Diffstat (limited to 'support/kamal/texspell')
-rw-r--r-- | support/kamal/texspell | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/support/kamal/texspell b/support/kamal/texspell new file mode 100644 index 0000000000..13dca97217 --- /dev/null +++ b/support/kamal/texspell @@ -0,0 +1,41 @@ +#! /bin/csh +# shell for running texspell which is TeX and LaTeX's spell +# Author: Kamal Al-Yahya 1984 + +set flag = () +unset file + +if ($#argv == 0) then + echo "usage: texspell [-w -i] file" + exit(-1) +endif +while ($#argv > 0) + switch ($argv[1]) + case -*: + set flag = ($flag $argv[1]) + breaksw + default: + set file + breaksw + endsw + if !($?file) then + shift argv + else + break + endif +end + +if ($#argv == 0) then + echo "usage: texspell [-w -i] file" + exit(-1) +endif +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) |