Files
xen/tools/check/check_python
T

14 lines
209 B
Bash
Executable File

#!/bin/sh
# CHECK-BUILD CHECK-INSTALL
RC=0
python -V 2>&1 | cut -d ' ' -f 2 | grep -q '^2.[2345]' || RC=1
if test ${RC} -ne 0; then
echo
echo " *** Check for Python version >= 2.2 FAILED"
fi
exit ${RC}