Files
xen/tools/check/check_python
T
mjw@wray-m-3.hpl.hp.com b0b7188948 bitkeeper revision 1.1159.1.88 (4124b308xrxOcaDBfOP8TGkxArG9Yg)
Checking scripts for the things Xen needs for build and install.
2004-08-19 14:02:48 +00:00

11 lines
212 B
Bash
Executable File

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