File: webspell

package info (click to toggle)
openacs 5.5.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 54,632 kB
  • ctags: 13,474
  • sloc: sql: 116,618; tcl: 99,890; xml: 55,299; php: 4,780; sh: 2,385; perl: 1,194; java: 368; makefile: 124
file content (24 lines) | stat: -rwxr-xr-x 686 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
#
# webspell -  Wrapper for Aspell/Ispell that sets the HOME environment variable
# to [ns_info home] ... can't seem to do this from AOLserver Tcl.
#
# Takes five arguments:
#
# $1) AOLserver home.
# $2) Spellcheck binary (Aspell or Ispell).
# $3) Language, in lang or locale format. (Aspell only - Ispell gets "".)
# $4) Local dictionary file (additional words you don't want to get caught by.)
# $5) tmpfile
#
# Root must be able to execute this file if AOLserver runs as root
# (which it does if it runs on a privileged port, e.g., port 80)

HOME=$1
export HOME

# set default language, in case, no language was given
LANG=en_US.UTF-8
export LANG

exec $2 $3 -a -p $4 < $5