trawick 2004/02/05 06:19:16
Modified: build buildcheck.sh Log: fix the python detection; python -V isn't cool for detecting presence since that writes to stderr, same place as a "not found" message from the shell Revision Changes Path 1.11 +3 -2 apr/build/buildcheck.sh Index: buildcheck.sh =================================================================== RCS file: /home/cvs/apr/build/buildcheck.sh,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- buildcheck.sh 5 Feb 2004 14:12:17 -0000 1.10 +++ buildcheck.sh 5 Feb 2004 14:19:16 -0000 1.11 @@ -3,13 +3,14 @@ echo "buildconf: checking installation..." # any python -py_version=`python -V 2>&1|sed -e 's/^[^0-9]*//'` -if test -z "$py_version"; then +python=`build/PrintPath python` +if test -z "$python"; then echo "buildconf: python not found." echo " You need python installed" echo " to build APR from CVS." exit 1 else +py_version=`python -V 2>&1|sed -e 's/^[^0-9]*//'` echo "buildconf: python version $py_version (ok)" fi
