ia64/xen-unstable

diff 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 diff
     1.1 --- a/tools/check/check_python_devel	Thu Dec 14 15:43:40 2006 +0000
     1.2 +++ b/tools/check/check_python_devel	Thu Dec 14 16:00:31 2006 +0000
     1.3 @@ -1,4 +1,4 @@
     1.4 -#!/bin/bash
     1.5 +#!/bin/sh
     1.6  # CHECK-BUILD
     1.7  
     1.8  function error {
     1.9 @@ -7,10 +7,19 @@ function error {
    1.10      exit 1
    1.11  }
    1.12  
    1.13 +RC=0
    1.14 +
    1.15  python -c '
    1.16  import os.path, sys
    1.17  for p in sys.path:
    1.18  	if os.path.exists(p + "/config/Makefile"):
    1.19  		sys.exit(0)
    1.20  sys.exit(1)
    1.21 -' || error
    1.22 +' || RC=1 
    1.23 +
    1.24 +if test ${RC} -ne 0; then
    1.25 +	echo
    1.26 +	echo " *** Check for python development environment FAILED"
    1.27 +fi
    1.28 +
    1.29 +exit ${RC}