From: David Schleef Date: Mon, 8 Jan 2001 22:02:43 +0000 (+0000) Subject: fix versioning issues on UTS_VERSION X-Git-Tag: r0_7_54~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=975946295ca4ddf45c678aa8057bca6ad08e98de;p=comedi.git fix versioning issues on UTS_VERSION --- diff --git a/scripts/dep.linux b/scripts/dep.linux index fa52ad67..25ba9b80 100755 --- a/scripts/dep.linux +++ b/scripts/dep.linux @@ -38,22 +38,27 @@ fi # # check running kernel vs. /usr/src/linux and warn if necessary # -read dummy dummy dummy2 <$LINUXDIR/include/linux/version.h -UTS_VERSION=`echo $dummy2|sed 's/"//g'` - +UTS_VERSION=$(grep UTS_RELEASE ${LINUXDIR}/include/linux/version.h| \ + sed 's/[^"]*"\(.*\)\{1\}"/\1/') echo UTS_VERSION=$UTS_VERSION >.uts_version -if [ "$(uname -r)" != "$UTS_VERSION" ] +echo "Kernel source version is ${UTS_VERSION}" + +UNAME=$(uname -r) + +if [ "${UNAME}" != "${UTS_VERSION}" ] then cat <