Unix-Text-Processing icon indicating copy to clipboard operation
Unix-Text-Processing copied to clipboard

Change path to groff and awk in Makefile to use env

Open alohawolf opened this issue 3 years ago • 2 comments

I'd suggest changing

GROFF = /usr/bin/groff AWK = /usr/bin/awk

to

GROFF = /usr/bin/env groff AWK = /usr/bin/env awk

I ran into an issue on OS X where when I installed an updated groff via homebrew, because the script was hardcoded to a particular path, it didn't pick up the change.

alohawolf avatar Feb 19 '22 20:02 alohawolf

alohawolf writes:

GROFF = /usr/bin/env groff AWK = /usr/bin/env awk

Why can't you just use the bare commands and let $PATH do its job?

GROFF = groff AWK = awk

rastagraffix avatar Feb 19 '22 20:02 rastagraffix

Why can't you just use the bare commands and let $PATH do its job? GROFF = groff AWK = awk

You very well could, I'm indifferent - so long as it moves away from a hard coded path

alohawolf avatar Feb 19 '22 20:02 alohawolf