From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- support/kamal/texspell | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 support/kamal/texspell (limited to 'support/kamal/texspell') 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) -- cgit v1.2.3