ia64/xen-unstable

view tools/check/check_python_devel @ 13032:afc6b5a60866

[TOOLS] Fix check-script compatibility with non-bash shells.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Thu Dec 14 16:00:31 2006 +0000 (2006-12-14)
parents cc180acf4693
children 67c5d83cdcd2
line source
1 #!/bin/sh
2 # CHECK-BUILD
4 function error {
5 echo
6 echo " *** Check for python development environment FAILED"
7 exit 1
8 }
10 RC=0
12 python -c '
13 import os.path, sys
14 for p in sys.path:
15 if os.path.exists(p + "/config/Makefile"):
16 sys.exit(0)
17 sys.exit(1)
18 ' || RC=1
20 if test ${RC} -ne 0; then
21 echo
22 echo " *** Check for python development environment FAILED"
23 fi
25 exit ${RC}