On Thu, Feb 19, 2009 at 2:56 PM, Ulrich Mueller <[email protected]> wrote: > -DEPEND=">=dev-util/bzr-1.5 > - dev-util/diffstat" > +DEPEND=">=dev-util/bzr-1.5" > > - ${EBZR_DIFF_CMD} | diffstat > + [ -x /usr/bin/diffstat ] && ${EBZR_DIFF_CMD} | /usr/bin/diffstat >
Isn't this better?
type diffstat &>/dev/null && {EBZR_DIFF_CMD} | diffstat
It's independent of where diffstat is (in PATH or otherwise)
--
~Nirbheek Chauhan
