Files
xen/tools/check/check_python_devel
T

20 lines
272 B
Bash
Executable File

#!/bin/sh
# CHECK-BUILD
RC=0
python -c '
import os.path, sys
for p in sys.path:
if os.path.exists(p + "/config/Makefile"):
sys.exit(0)
sys.exit(1)
' || RC=1
if test ${RC} -ne 0; then
echo
echo " *** Check for python development environment FAILED"
fi
exit ${RC}