Tizen 2.1 base
[external/enchant.git] / tests / ispell.in
1 #!/bin/sh
2
3 # Ispell compatibility script for Enchant
4
5 exec_prefix=@prefix@
6 bindir=${exec_prefix}/bin
7 command=""
8
9 for p 
10 do
11   case $p in 
12   -a|-A|-l|-c|-e*|-v*|-D) command=$p ;; 
13   -*                    ) ;;
14   *                     ) command=${command:="-"} ;;
15   esac
16 done
17
18 case $command in
19 -A|-c|-e*|-d) echo "Enchant does not support the $command mode.";;
20 -a|-l|-v*   ) exec ${bindir}/enchant "$@" ;;
21 "-"         ) exec ${bindir}/enchant "$@" ;;
22 *           ) echo "Ispell compatibility script for Enchant."
23               echo "Usage: $0 [options] -a|-l|-v[v]|<file>"
24               exit 1 ;;
25 esac