debuggers.hg

changeset 19957:7b8f6416aae4

Make python check scripts use of $(PYTHON) make variable.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jul 09 17:05:07 2009 +0100 (2009-07-09)
parents 813e362f333b
children 20743a0a4ac5
files tools/check/Makefile tools/check/check_python tools/check/check_python_devel tools/check/check_python_xml
line diff
     1.1 --- a/tools/check/Makefile	Thu Jul 09 16:06:52 2009 +0100
     1.2 +++ b/tools/check/Makefile	Thu Jul 09 17:05:07 2009 +0100
     1.3 @@ -7,12 +7,12 @@ all install: check-build
     1.4  # Check this machine is OK for building on.
     1.5  .PHONY: check-build
     1.6  check-build:
     1.7 -	LIBXENAPI_BINDINGS=$(LIBXENAPI_BINDINGS) ACM_SECURITY=$(ACM_SECURITY) ./chk build
     1.8 +	PYTHON=$(PYTHON) LIBXENAPI_BINDINGS=$(LIBXENAPI_BINDINGS) ACM_SECURITY=$(ACM_SECURITY) ./chk build
     1.9  
    1.10  # Check this machine is OK for installing on.
    1.11  .PHONY: check-install
    1.12  check-install:
    1.13 -	LIBXENAPI_BINDINGS=$(LIBXENAPI_BINDINGS) ACM_SECURITY=$(ACM_SECURITY) ./chk install
    1.14 +	PYTHON=$(PYTHON) LIBXENAPI_BINDINGS=$(LIBXENAPI_BINDINGS) ACM_SECURITY=$(ACM_SECURITY) ./chk install
    1.15  
    1.16  .PHONY: clean
    1.17  clean:
     2.1 --- a/tools/check/check_python	Thu Jul 09 16:06:52 2009 +0100
     2.2 +++ b/tools/check/check_python	Thu Jul 09 17:05:07 2009 +0100
     2.3 @@ -3,7 +3,11 @@
     2.4  
     2.5  . ./funcs.sh
     2.6  
     2.7 -python -c '
     2.8 +if test -z ${PYTHON}; then
     2.9 +	PYTHON=`/usr/bin/env python 2>/dev/null`
    2.10 +fi
    2.11 +
    2.12 +${PYTHON} -c '
    2.13  import sys
    2.14  sys.exit(sys.version_info[0] < 2 or sys.version_info[1] < 2)
    2.15  ' || fail "need python version >= 2.2"
     3.1 --- a/tools/check/check_python_devel	Thu Jul 09 16:06:52 2009 +0100
     3.2 +++ b/tools/check/check_python_devel	Thu Jul 09 17:05:07 2009 +0100
     3.3 @@ -3,7 +3,12 @@
     3.4  
     3.5  . ./funcs.sh
     3.6  
     3.7 -python -c '
     3.8 +if test -z ${PYTHON}; then
     3.9 +	PYTHON=`/usr/bin/env python 2>/dev/null`
    3.10 +fi
    3.11 +has_or_fail ${PYTHON}
    3.12 +
    3.13 +${PYTHON} -c '
    3.14  import os.path, sys
    3.15  for p in sys.path:
    3.16  	if os.path.exists(p + "/config/Makefile"):
     4.1 --- a/tools/check/check_python_xml	Thu Jul 09 16:06:52 2009 +0100
     4.2 +++ b/tools/check/check_python_xml	Thu Jul 09 17:05:07 2009 +0100
     4.3 @@ -3,5 +3,10 @@
     4.4  
     4.5  . ./funcs.sh
     4.6  
     4.7 -python -c 'import xml.dom.minidom' 2>/dev/null || \
     4.8 +if test -z ${PYTHON}; then
     4.9 +	PYTHON=`/usr/bin/env python 2>/dev/null`
    4.10 +fi
    4.11 +has_or_fail ${PYTHON}
    4.12 +
    4.13 +${PYTHON} -c 'import xml.dom.minidom' 2>/dev/null || \
    4.14  fail "can't import xml.dom.minidom"