summaryrefslogtreecommitdiffstats
path: root/contrib/groff/eqn/neqn.sh
blob: cc32e66406b3ac8764cdc05b15dfb6df1a110f6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# Provision of this shell script should not be taken to imply that use of
# GNU eqn with groff -Tascii|-Tlatin1 is supported.

# Default device.
if test `expr "$LC_CTYPE" : ".*\.ISO_8859-1"` -gt 0 || \
   test `expr "$LANG" : ".*\.ISO_8859-1"` -gt 0
then
	T=-Tlatin1
else
if test `expr "$LC_CTYPE" : ".*\.KOI8-R"` -gt 0 || \
   test `expr "$LANG" : ".*\.KOI8-R"` -gt 0
then
	T=-Tkoi8-r
else
	T=-Tascii
fi
fi

exec @g@eqn -T${T} ${1+"$@"}
OpenPOWER on IntegriCloud