neqn.sh revision 69631
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|-Tutf8|-Tcp1047 is supported.
4# $FreeBSD: head/contrib/groff/src/preproc/eqn/neqn.sh 69631 2000-12-05 19:06:41Z ru $
5
6# Default device.
7locale=${LC_CTYPE:-$LANG}
8if test `expr "$locale" : ".*\.ISO_8859-1"` -gt 0
9then
10	T=latin1
11else
12if test `expr "$locale" : ".*\.KOI8-R"` -gt 0
13then
14	T=koi8-r
15else
16	T=ascii
17fi
18fi
19
20exec @g@eqn -T${T} ${1+"$@"}
21