File: check

package info (click to toggle)
eo-spell 3.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 952 kB
  • sloc: lisp: 2,789; sh: 179; makefile: 142; sed: 73; perl: 25; ansic: 16
file content (40 lines) | stat: -rwxr-xr-x 808 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh

echo "Checking your ispell:"

status=0

ispell -vv | grep 8BIT| grep "!NO8BIT" > /dev/null 2>&1

if [ $? ] ; then
   echo "8BIT is okay."
else
   echo "You have NO8BIT set."
   echo "Recompile ispell with NO8BIT in local.h commented out."
   exit 7
fi

M=`ispell -vv | sed -n -e 's/MASKBITS = \([0-9]*\)/\1/p'`

if [ "$M" -ge 64 ]
then
    echo "MASKBITS = 64 is okay"
else
    echo "MASKBITS < 64.  You need to recompile ispell."
    exit 32
fi

(ispell -vv | grep MASKBITS | grep "32" > /dev/null 2>&1 && \
echo "MASKBITS = 32.  You need to recompile ispell." && exit 32)

# Are there other MASKBITS values??

if [ "`echo Aabb | sed -r 's/([aA]+)/\l\1/'`" = "aabb" ]
then
    echo "sed version is okay"
else
    echo "You need a GNU-compatible sed, v. 4.09 or better"
    exit 9
fi

exit $status