debuggers.hg

changeset 19987:10d806ca5952

tools/check: We do need a default for ${PYTHON} as called from
install.sh with PYTHON possibly undefined in the environment.

So we make PYTHON=python the sensible default.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jul 15 15:33:05 2009 +0100 (2009-07-15)
parents bc80ccb79c5b
children 06893fe1c399
files tools/check/check_python tools/check/check_python_devel tools/check/check_python_xml
line diff
     1.1 --- a/tools/check/check_python	Wed Jul 15 14:53:01 2009 +0100
     1.2 +++ b/tools/check/check_python	Wed Jul 15 15:33:05 2009 +0100
     1.3 @@ -3,6 +3,10 @@
     1.4  
     1.5  . ./funcs.sh
     1.6  
     1.7 +if test -z ${PYTHON}; then
     1.8 +  PYTHON=python
     1.9 +fi
    1.10 +
    1.11  ${PYTHON} -c '
    1.12  import sys
    1.13  sys.exit(sys.version_info[0] < 2 or sys.version_info[1] < 2)
     2.1 --- a/tools/check/check_python_devel	Wed Jul 15 14:53:01 2009 +0100
     2.2 +++ b/tools/check/check_python_devel	Wed Jul 15 15:33:05 2009 +0100
     2.3 @@ -3,6 +3,9 @@
     2.4  
     2.5  . ./funcs.sh
     2.6  
     2.7 +if test -z ${PYTHON}; then
     2.8 +  PYTHON=python
     2.9 +fi
    2.10  has_or_fail ${PYTHON}
    2.11  
    2.12  ${PYTHON} -c '
     3.1 --- a/tools/check/check_python_xml	Wed Jul 15 14:53:01 2009 +0100
     3.2 +++ b/tools/check/check_python_xml	Wed Jul 15 15:33:05 2009 +0100
     3.3 @@ -3,6 +3,9 @@
     3.4  
     3.5  . ./funcs.sh
     3.6  
     3.7 +if test -z ${PYTHON}; then
     3.8 +  PYTHON=python
     3.9 +fi
    3.10  has_or_fail ${PYTHON}
    3.11  
    3.12  ${PYTHON} -c 'import xml.dom.minidom' 2>/dev/null || \