diff options
author | Dom Lachowicz <domlachowicz@gmail.com> | 2003-08-31 18:19:08 +0000 |
---|---|---|
committer | Dom Lachowicz <domlachowicz@gmail.com> | 2003-08-31 18:19:08 +0000 |
commit | 98e58f66ee57fb80e60235f141fb247ca6b78450 (patch) | |
tree | eb8f31266b21b5da45bd5f3d8117c333df61a69d | |
parent | 8d33dd0e12b36cab3edad0165f7f18049e58a40a (diff) | |
download | enchant-98e58f66ee57fb80e60235f141fb247ca6b78450.tar.gz |
ispell wrapper script - not yet installed
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@20840 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r-- | tests/Makefile.am | 2 | ||||
-rwxr-xr-x | tests/ispell | 23 |
2 files changed, 24 insertions, 1 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index c990921..1807d66 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,6 +1,6 @@ INCLUDES=-I$(top_srcdir)/src $(ENCHANT_CFLAGS) -EXTRA_DIST=test.pwl +EXTRA_DIST=test.pwl ispell DEPS= $(top_builddir)/src/libenchant.la ldadd= $(top_builddir)/src/libenchant.la $(ENCHANT_LIBS) diff --git a/tests/ispell b/tests/ispell new file mode 100755 index 0000000..0d1956a --- /dev/null +++ b/tests/ispell @@ -0,0 +1,23 @@ +#!/bin/sh + +# Ispell compatibility script for Enchant + +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 enchant "$@" ;; +"-" ) exec enchant "$@" ;; +* ) echo "Ispell compatibility script for Enchant." + echo "Usage: $0 [options] -a|-l|-v[v]|<file>" + exit 1 ;; +esac |