mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Fix 'chk' scripts for generic shell (non-bash) and *BSD.
From: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
19c8d7a8fa
commit
ee89b4ab59
6 files changed
+88
-42
No files matched your search
@@ -1,10 +1,13 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
# CHECK-BUILD CHECK-INSTALL
|
||||
|
||||
function error {
|
||||
echo
|
||||
echo " *** Check for Python version >= 2.2 FAILED"
|
||||
exit 1
|
||||
}
|
||||
RC=0
|
||||
|
||||
python -V 2>&1 | cut -d ' ' -f 2 | grep -q '^2.[2345]' || error
|
||||
python -V 2>&1 | cut -d ' ' -f 2 | grep -q '^2.[2345]' || RC=1
|
||||
|
||||
if test ${RC} -ne 0; then
|
||||
echo
|
||||
echo " *** Check for Python version >= 2.2 FAILED"
|
||||
fi
|
||||
|
||||
exit ${RC}
|
||||