|
| |
1 |
1 |
#!/bin/sh |
|
| |
2 |
|
|
|
| |
3 |
|
# Wrapper for aspell/ispell that sets the HOME environment variable. |
|
| |
4 |
|
# Can't seem to do this from AOLserver Tcl. |
|
| |
5 |
|
# Takes three arguments: file to spellcheck, dictionary file, language. |
|
| |
6 |
2 |
# |
|
| |
|
3 |
# webspell - Wrapper for Aspell/Ispell that sets the HOME environment variable |
|
| |
|
4 |
# to [ns_info home] ... can't seem to do this from AOLserver Tcl. |
|
| |
|
5 |
# |
|
| |
|
6 |
# Takes five arguments: |
|
| |
|
7 |
# |
|
| |
|
8 |
# $1) AOLserver home. |
|
| |
|
9 |
# $2) Spellcheck binary (Aspell or Ispell). |
|
| |
|
10 |
# $3) Language, in lang or locale format. (Aspell only - Ispell gets "".) |
|
| |
|
11 |
# $4) Local dictionary file (additional words you don't want to get caught by.) |
|
| |
|
12 |
# $5) tmpfile |
|
| |
|
13 |
# |
|
| |
7 |
14 |
# Root must be able to execute this file if AOLserver runs as root |
|
| |
8 |
15 |
# (which it does if it runs on a privileged port, e.g., port 80) |
|
| |
9 |
16 |
|
|
| |
10 |
|
#HOME=/usr/local/aolserver |
|
| |
11 |
|
HOME=$4 |
|
| |
|
17 |
HOME=$1 |
|
| |
12 |
18 |
export HOME |
|
| |
13 |
|
exec $3 $5 -a -p $2 < $1 |
|
| |
|
19 |
|
|
| |
|
20 |
exec $2 $3 -a -p $4 < $5 |