[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r15941 - trunk/build

From: David James <james82_at_gmail.com>
Date: 2005-08-27 20:12:09 CEST

On 8/27/05, jerenkrantz@tigris.org <jerenkrantz@tigris.org> wrote:
> Log:
> * build/find_python.sh: Work on Solaris's /bin/sh by skipping over blank
> environment variables.
I've tested this on Linux and it works great. This looks like an
important fix for Solaris. Thanks Justin!

> Modified: trunk/build/find_python.sh
> Url: http://svn.collab.net/viewcvs/svn/trunk/build/find_python.sh?rev=15941&p1=trunk/build/find_python.sh&p2=trunk/build/find_python.sh&r1=15940&r2=15941
> ==============================================================================
> --- trunk/build/find_python.sh (original)
> +++ trunk/build/find_python.sh Sat Aug 27 12:59:18 2005
> @@ -6,10 +6,12 @@
> VERSION=${1:-0x2000000}
>
> for pypath in "$PYTHON" "$PYTHON2" python python2; do
> - DETECT_PYTHON="import sys;sys.exit((sys.hexversion < $VERSION) and 1 or 0)"
> - if "$pypath" -c "$DETECT_PYTHON" >/dev/null 2>/dev/null; then
> - echo $pypath
> - exit 0
> + if [ "x$pypath" != "x" ]; then
> + DETECT_PYTHON="import sys;sys.exit((sys.hexversion < $VERSION) and 1 or 0)"
> + if "$pypath" -c "$DETECT_PYTHON" >/dev/null 2>/dev/null; then
> + echo $pypath
> + exit 0
> + fi
> fi
> done
> exit 1

-- 
David James -- http://www.cs.toronto.edu/~james
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Aug 27 20:12:51 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.