mirror of https://gitee.com/openkylin/enchant.git
26 lines
598 B
Bash
Executable File
26 lines
598 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Ispell compatibility script for Enchant
|
|
|
|
exec_prefix=@prefix@
|
|
bindir=${exec_prefix}/bin
|
|
command=""
|
|
|
|
for p
|
|
do
|
|
case $p in
|
|
-a|-A|-l|-c|-e*|-v*|-D) command=$p ;;
|
|
-* ) ;;
|
|
* ) command=${command:="-"} ;;
|
|
esac
|
|
done
|
|
|
|
case $command in
|
|
-A|-c|-e*|-d) echo "Enchant does not support the $command mode.";;
|
|
-a|-l|-v* ) exec ${bindir}/enchant "$@" ;;
|
|
"-" ) exec ${bindir}/enchant "$@" ;;
|
|
* ) echo "Ispell compatibility script for Enchant."
|
|
echo "Usage: $0 [options] -a|-l|-v[v]|<file>"
|
|
exit 1 ;;
|
|
esac
|