]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/groff/src/preproc/eqn/neqn.sh
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / groff / src / preproc / eqn / neqn.sh
1 #! /bin/sh
2 # Provision of this shell script should not be taken to imply that use of
3 # GNU eqn with groff -Tascii|-Tlatin1|-Tkoi8-r|-Tutf8|-Tcp1047 is supported.
4 # $FreeBSD$
5
6 # Default device.
7 case "${LC_ALL-${LC_CTYPE-${LANG}}}" in
8   *.UTF-8)
9     T=utf8 ;;
10   iso_8859_1 | *.ISO*8859-1 | *.ISO*8859-15)
11     T=latin1 ;;
12   *.IBM-1047)
13     T=cp1047 ;;
14   *.KOI8-R)
15     T=koi8-r ;;
16   *)
17     T=ascii ;;
18 esac
19
20 @GROFF_BIN_PATH_SETUP@
21 PATH="$GROFF_RUNTIME$PATH"
22 export PATH
23 exec @g@eqn -T${T} ${1+"$@"}
24
25 # eof