File: webspell

package info (click to toggle)
dotlrn 2.5.0+dfsg-6+wheezy4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 108,272 kB
  • sloc: tcl: 219,601; sql: 202,152; xml: 127,658; java: 7,268; php: 4,780; sh: 2,486; perl: 1,207; makefile: 137
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