diff options
author | Ruediger Pluem <rpluem@apache.org> | 2023-01-04 14:42:35 +0100 |
---|---|---|
committer | Ruediger Pluem <rpluem@apache.org> | 2023-01-04 14:42:35 +0100 |
commit | 05297d7b00f0cb1f20d3ff14f4409097df2615fe (patch) | |
tree | 1a4380dd55140350400394710f70b0d53d96274f /build | |
parent | * Add CHANGELOG for r1906379, r1906380 (diff) | |
download | apache2-05297d7b00f0cb1f20d3ff14f4409097df2615fe.tar.xz apache2-05297d7b00f0cb1f20d3ff14f4409097df2615fe.zip |
Use 'command -v' instead of 'which' which is more portable.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1906387 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rwxr-xr-x | build/aix/buildaix.ksh | 8 | ||||
-rwxr-xr-x | build/pkg/buildpkg.sh | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/build/aix/buildaix.ksh b/build/aix/buildaix.ksh index 83521d4154..1f4a1a5b3b 100755 --- a/build/aix/buildaix.ksh +++ b/build/aix/buildaix.ksh @@ -26,14 +26,14 @@ export CFLAGS='-O2 -qlanglvl=extc99' lslpp -L bos.adt.insttools >/dev/null [[ $? -ne 0 ]] && echo "must have bos.adt.insttools installed" && exit -1 -apr_config=`which apr-1-config` -apu_config=`which apu-1-config` +apr_config=`command -v apr-1-config` +apu_config=`command -v apu-1-config` if [[ -z ${apr_config} && -z ${apu_config} ]] then export PATH=/opt/bin:${PATH} - apr_config=`which apr-1-config` - apu_config=`which apu-1-config` + apr_config=`command -v apr-1-config` + apu_config=`command -v apu-1-config` fi while test $# -gt 0 diff --git a/build/pkg/buildpkg.sh b/build/pkg/buildpkg.sh index 028124057b..a2d7934cb2 100755 --- a/build/pkg/buildpkg.sh +++ b/build/pkg/buildpkg.sh @@ -24,8 +24,8 @@ PREFIX=/usr/local/apache2 TEMPDIR=/var/tmp/$USER/httpd-root rm -rf $TEMPDIR -apr_config=`which apr-1-config` -apu_config=`which apu-1-config` +apr_config=`command -v apr-1-config` +apu_config=`command -v apu-1-config` while test $# -gt 0 do |