neqn.sh revision 79550
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: head/contrib/groff/src/preproc/eqn/neqn.sh 79550 2001-07-10 17:15:31Z ru $
5
6# Default device.
7case "${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 ;;
18esac
19
20: ${GROFF_BIN_PATH=@BINDIR@}
21PATH=$GROFF_BIN_PATH:$PATH
22export PATH
23exec @g@eqn -T${T} ${1+"$@"}
24
25# eof
26