diff options
author | Jeff Trawick <trawick@apache.org> | 2002-08-29 23:04:36 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2002-08-29 23:04:36 +0000 |
commit | d20d462a7d76bf2ade87b95baf2718203691d1b5 (patch) | |
tree | 230c4387124b43b4d7b170d43cc9c77efe35cb0e /build/install-bindist.sh.in | |
parent | 2ddfc425e561f9b4304296d7beaaaf07cf472681 (diff) | |
download | httpd-d20d462a7d76bf2ade87b95baf2718203691d1b5.tar.gz |
find the first perl, not the last
we break-ed when we found the first perl, but it didn't
get us out of the outer for
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96580 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/install-bindist.sh.in')
-rwxr-xr-x | build/install-bindist.sh.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build/install-bindist.sh.in b/build/install-bindist.sh.in index 314be2d4d5..58d3af68ea 100755 --- a/build/install-bindist.sh.in +++ b/build/install-bindist.sh.in @@ -50,16 +50,21 @@ lcopy() PERL=no-perl5-on-this-system perls='perl5 perl' path=`echo $PATH | sed -e 's/:/ /g'` +found_perl=0 for dir in ${path} ; do for pperl in ${perls} ; do if test -f "${dir}/${pperl}" ; then if `${dir}/${pperl} -v >/dev/null 2>&1` ; then PERL="${dir}/${pperl}" + found_perl=1 break fi fi done + if test $found_perl = 1 ; then + break + fi done if [ .$1 = . ] |