home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Inkscape / Inkscape-0.48.2-1-win32.exe / lib / aspell-0.60 / ispell < prev    next >
Encoding:
Text File  |  2010-03-06  |  988 b   |  33 lines

  1. #!/bin/sh
  2.  
  3. # Ispell compatibility script for Aspell
  4.  
  5. # Uncomment this (remove the leading '#') to use the Ispell key
  6. #   mapping when checking files with the "ispell command".
  7. #CHECK_FLAGS="--keymapping=ispell"
  8.  
  9. command=""
  10.  
  11. for p 
  12. do
  13.   case $p in 
  14.   -a|-A|-l|-c|-e*|-v*|-D) command=$p ;; 
  15.   -*                    ) ;;
  16.   *                     ) command=${command:="-"} ;;
  17.   esac
  18. done
  19.  
  20. case $command in
  21. -A          ) echo "Aspell does not support the $command mode.";;
  22. -a|-v*      ) exec aspell "$@" ;;
  23. -l          ) shift; exec aspell list "$@" ;;
  24. -c          ) shift; exec aspell munch "$@" ;;
  25. -e          ) shift; exec aspell expand "$@" ;;
  26. -e?         ) shift; exec aspell expand `expr "x$command" : '...\(.\)'` "$@" ;;
  27. -D          ) shift; exec aspell dump affix "$@" ;;
  28. "-"         ) exec aspell check $CHECK_FLAGS "$@" ;;
  29. *           ) echo "Ispell compatibility script for Aspell."
  30.               echo "Usage: $0 [options] -a|-l|-v[v]|-c|-e[1-4]|<file>"
  31.               exit 1 ;;
  32. esac
  33.