From f632a16afebd48162815c3001554cf9bbb91e1da Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 25 Aug 2017 13:06:40 +0200 Subject: Prefer GNU tools on BSD systems Bug: https://bugs.gentoo.org/628882 --- eltpatch.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eltpatch.in b/eltpatch.in index a4e87d2..8f6f9f3 100644 --- a/eltpatch.in +++ b/eltpatch.in @@ -2,6 +2,12 @@ # Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +# BSD support; https://bugs.gentoo.org/628882 +# note: this need to happen before function definitions +type -P gfind &>/dev/null && alias find=gfind +type -P gpatch &>/dev/null && alias patch=gpatch +type -P gsed &>/dev/null && alias sed=gsed + source "@ELT_gentoofuncs@" || exit 1 die() { -- cgit v1.2.3-18-g5258