summaryrefslogtreecommitdiff
path: root/net/hobbitclient/patches/patch-ab
blob: 5b2d36a5d09d67da365ce71dad824c15a5bb2e47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-ab,v 1.1 2007/05/29 04:58:07 gendalia Exp $

--- build/bb-commands.sh.orig	2007-04-14 00:20:21.000000000 -0500
+++ build/bb-commands.sh
@@ -9,6 +9,11 @@
 
 findbin() {
 	MYP="`echo ${PATH} | sed -e 's/:/ /g'`"
+	eval _var=\"\${${ENVNAME}}\"
+	if test -n "$_var"; then
+		echo "$_var"
+		return
+	fi
 
 	for D in $MYP
 	do
@@ -31,11 +36,13 @@ do
 done
 
 # WC is special
+ENVNAME=WC
 PGM=`findbin wc | head -n 1`
 echo "WC=\"${PGM} -l\""
 echo "WCC=\"${PGM}\""
 
 # DFCMD is an alias for DF
+ENVNAME=DF
 PGM=`findbin df | head -n 1`
 echo "# DF,DFCMD and PS are for compatibility only, NOT USED by the Hobbit client"
 echo "DF=\"${PGM} -Pk\""