You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2002/08/30 01:04:36 UTC
cvs commit: httpd-2.0/build install-bindist.sh.in
trawick 2002/08/29 16:04:36
Modified: build install-bindist.sh.in
Log:
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
Revision Changes Path
1.11 +5 -0 httpd-2.0/build/install-bindist.sh.in
Index: install-bindist.sh.in
===================================================================
RCS file: /home/cvs/httpd-2.0/build/install-bindist.sh.in,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- install-bindist.sh.in 13 Jun 2002 18:46:28 -0000 1.10
+++ install-bindist.sh.in 29 Aug 2002 23:04:36 -0000 1.11
@@ -50,16 +50,21 @@
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 = . ]