diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-01-22 09:44:17 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-01-22 09:44:17 +0000 |
commit | b7d7bde93532745ac21f2a09b7f926533f104861 (patch) | |
tree | ce340c915fbe6b23694eed63d675db647064290d /tools/check/check_zlib_lib | |
parent | 036e6bd11be95e3e78d2316b0cf0847740b539bc (diff) | |
download | xen-b7d7bde93532745ac21f2a09b7f926533f104861.tar.gz xen-b7d7bde93532745ac21f2a09b7f926533f104861.tar.bz2 xen-b7d7bde93532745ac21f2a09b7f926533f104861.zip |
Make tools/check scripts cross-friendly
This patch introduces tools/check/funcs.sh with some
cross-friendly abstractions, then modifies the check_*
scripts to use them.
Signed-off-by: Aron Griffis <aron@hp.com>
Diffstat (limited to 'tools/check/check_zlib_lib')
-rwxr-xr-x | tools/check/check_zlib_lib | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/tools/check/check_zlib_lib b/tools/check/check_zlib_lib index a4231d606a..804b78374e 100755 --- a/tools/check/check_zlib_lib +++ b/tools/check/check_zlib_lib @@ -1,24 +1,12 @@ #!/bin/sh # CHECK-BUILD CHECK-INSTALL -RC=0 +. funcs.sh -case $(uname -s) in +case $OS in FreeBSD|NetBSD|OpenBSD) exit 0 ;; -*) - ;; esac -PATH=/sbin:$PATH - -set -e -ldconfig -p 2>&1 | grep -q libz.so || RC=1 - -if test ${RC} -ne 0; then - echo - echo " *** Check for zlib library FAILED" -fi - -exit ${RC} +has_lib libz.so || fail "can't find zlib" |