- fix check-build.sh for kernel > 3.0 OBS-URL: https://build.opensuse.org/request/show/141627 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libdb-4_8?expand=0&rev=23
17 lines
464 B
Bash
17 lines
464 B
Bash
#!/bin/bash
|
|
# Copyright (c) 2004 SuSE Linux AG, Germany. All rights reserved.
|
|
#
|
|
|
|
# get kernel version
|
|
OFS="$IFS" ; IFS=".-" ; version=(`uname -r`) ; IFS="$OIFS"
|
|
echo "version = ${version[0]} ${version[1]} ${version[2]}"
|
|
if test ${version[0]} -gt 2 ; then
|
|
: # okay
|
|
elif test ${version[0]} -lt 2 -o ${version[1]} -lt 6 -o ${version[2]} -lt 4 ; then
|
|
echo "FATAL: kernel too old, need kernel >= 2.6.4 for this package" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|
|
|