3 # Do a spell check of PAE files using a standard dictionary
6 DICTFILE=pae-dict.ispell
9 [ -r "$DICTFILE" ] && return 0
10 [ -e "$DICTFILE" ] && echo "ERROR: Dictionary file $DICTFILE does not exist. Incomplete checkout?" >&2
11 [ ! -f "$DICTFILE" ] && echo "ERROR: Dictionary file $DICTFILE is not a regular file." >&2
16 echo "Usage: $0 book.xml [book2.xml ...]"
24 if ! check_dict ; then
25 echo "There was an error with the dictionary file. Aborting" >&2
30 if [ -f "$file" ] && [ -r "$file" ] ; then
31 echo "Running spell check for $file"
32 ispell -H -p $DICTFILE $file
34 echo -n "ERROR: Will not check '$file'" >&2
35 if [ ! -e "$file" ] ; then
36 echo -n " it does not exist." >&2
37 elif [ ! -f "$file" ] ; then
38 echo " it is not a regular file." >&2