Fix usage of GROFF_BIN_PATH.

This commit is contained in:
Ruslan Ermilov 2001-04-26 12:29:12 +00:00
parent 1d6caf5240
commit 289950f4f3
2 changed files with 2 additions and 4 deletions

View File

@ -107,7 +107,7 @@ shows the version number.
.B GROFF_BIN_PATH
A colon separated list of directories in which to search for the
.B groff
executable. If unset, `@BINDIR@' is used.
executable before searching in PATH. If unset, `@BINDIR@' is used.
.SH NOTES
This shell script is basically intended for use with
.BR man (1),

View File

@ -92,10 +92,8 @@ done
# This shell script is intended for use with man, so warnings are
# probably not wanted. Also load nroff-style character definitions.
OLD_PATH=$PATH
: ${GROFF_BIN_PATH=@BINDIR@}
export GROFF_BIN_PATH
PATH=$GROFF_BIN_PATH
PATH=$OLD_PATH groff $safer -Wall -mtty-char $T $opts ${1+"$@"}
PATH=$GROFF_BIN_PATH:$PATH groff $safer -Wall -mtty-char $T $opts ${1+"$@"}
# eof