summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-08-25 13:06:40 +0200
committerMichał Górny <mgorny@gentoo.org>2017-08-25 15:21:35 +0200
commitf632a16afebd48162815c3001554cf9bbb91e1da (patch)
treeed27b2d0094f76da1d980f55bbf76a14da91e6a3
parentSupport substituting functions.sh path as well, to fix Prefix (diff)
downloadelt-patches-f632a16afebd48162815c3001554cf9bbb91e1da.tar.gz
elt-patches-f632a16afebd48162815c3001554cf9bbb91e1da.tar.bz2
elt-patches-f632a16afebd48162815c3001554cf9bbb91e1da.zip
Prefer GNU tools on BSD systems
Bug: https://bugs.gentoo.org/628882
-rw-r--r--eltpatch.in6
1 files changed, 6 insertions, 0 deletions
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() {