Files
xen/tools/check/check_python
T

11 lines
209 B
Bash
Executable File

#!/bin/bash
# CHECK-BUILD CHECK-INSTALL
function error {
echo
echo " *** Check for Python version >= 2.2 FAILED"
exit 1
}
python -V 2>&1 | cut -d ' ' -f 2 | grep -q -E '^2.2|^2.3|^2.4' || error