1151503Sru#! /bin/sh
218099Spst# Provision of this shell script should not be taken to imply that use of
375590Sru# GNU eqn with groff -Tascii|-Tlatin1|-Tkoi8-r|-Tutf8|-Tcp1047 is supported.
469631Sru# $FreeBSD$
518099Spst
629438Sache# Default device.
775590Srucase "${LC_ALL-${LC_CTYPE-${LANG}}}" in
875590Sru  *.UTF-8)
975590Sru    T=utf8 ;;
1077994Sache  iso_8859_1 | *.ISO*8859-1 | *.ISO*8859-15)
1175590Sru    T=latin1 ;;
1275590Sru  *.IBM-1047)
1375590Sru    T=cp1047 ;;
1475590Sru  *.KOI8-R)
1575590Sru    T=koi8-r ;;
1675590Sru  *)
1775590Sru    T=ascii ;;
1875590Sruesac
1929438Sache
20151503Sru@GROFF_BIN_PATH_SETUP@
21151503SruPATH="$GROFF_RUNTIME$PATH"
2279550Sruexport PATH
2329438Sacheexec @g@eqn -T${T} ${1+"$@"}
2475590Sru
2575590Sru# eof
26