summaryrefslogtreecommitdiff
blob: fc578e5e6147c76f40b6b0440d8062c28d81b96e (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
31
32
33
34
35
36
37
38
Not upstream b/c already done in 2.3.0:
https://github.com/miniupnp/miniupnp/commit/c88178650e2551226a88cbc87084014781f81184
https://github.com/miniupnp/miniupnp/commit/d2f558f659da923144f591be418380a7ff8a8677
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ VERSION = $(shell cat VERSION)
 
 ifneq (, $(findstring darwin, $(OS)))
 JARSUFFIX=mac
-LIBTOOL ?= $(shell which libtool)
+LIBTOOL ?= $(shell command -v libtool)
 endif
 ifneq (, $(findstring linux, $(OS)))
 JARSUFFIX=linux
--- a/testminiwget.sh
+++ b/testminiwget.sh
@@ -24,8 +24,8 @@ EXPECTEDFILE="${TMPD}/expectedfile"
 DOWNLOADEDFILE="${TMPD}/downloadedfile"
 PORT=
 RET=0
-IPCONFIG=$(which ifconfig)
-IP=$(which ip)
+IPCONFIG=$(command -v ifconfig)
+IP=$(command -v ip)
 if [ "$IP" ] ; then
 	if ! $IP addr | grep inet6 ; then
 		HAVE_IPV6=no
--- a/updateminiupnpcstrings.sh
+++ b/updateminiupnpcstrings.sh
@@ -26,7 +26,7 @@ if [ -f /etc/debian_version ]; then
 	OS_VERSION=`cat /etc/debian_version`
 fi
 # use lsb_release (Linux Standard Base) when available
-LSB_RELEASE=`which lsb_release`
+LSB_RELEASE=`command -v lsb_release`
 if [ 0 -eq $? -a -x "${LSB_RELEASE}" ]; then
 	OS_NAME=`${LSB_RELEASE} -i -s`
 	OS_VERSION=`${LSB_RELEASE} -r -s`