freebsd-dev/contrib/groff/eqn/neqn.sh

21 lines
442 B
Bash
Raw Normal View History

1996-09-07 16:18:32 +00:00
#!/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
1999-06-07 19:28:47 +00:00
T=latin1
else
if test `expr "$LC_CTYPE" : ".*\.KOI8-R"` -gt 0 || \
test `expr "$LANG" : ".*\.KOI8-R"` -gt 0
then
1999-06-07 19:28:47 +00:00
T=koi8-r
else
1999-06-07 19:28:47 +00:00
T=ascii
fi
fi
exec @g@eqn -T${T} ${1+"$@"}