D5269: tests: sniff for /usr/local/bin/gmake and use it in test-fuzz-targets.t

Yuya Nishihara yuya at tcha.org
Sat Nov 17 21:21:37 EST 2018


> > +  $ if [ -x /usr/local/bin/gmake ] ; then
> > +  >     MAKE=gmake
> 
> Isn't this assuming that /usr/local/bin is in $PATH?  IOW, shouldn't this
> assignment be:
> 
> 	MAKE=/usr/local/bin/gmake

Perhaps, `type` or `which` can be used instead. `gmake` should be in PATH
if it's supposed to be used.

https://stackoverflow.com/a/39983421/10435339


More information about the Mercurial-devel mailing list