PageRenderTime 18ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/contrib/groff/src/preproc/eqn/neqn.sh

https://bitbucket.org/freebsd/freebsd-head/
Shell | 25 lines | 16 code | 3 blank | 6 comment | 0 complexity | 0f7776a5611c6a296d3dd4d68204cc65 MD5 | raw file
 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$
 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_SETUP@
21PATH="$GROFF_RUNTIME$PATH"
22export PATH
23exec @g@eqn -T${T} ${1+"$@"}
24
25# eof