X-Git-Url: http://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fconfig%2Flinux-version;h=caa7b253d08ca463f516d396fe26a880921dd697;hp=a6759ec4b2d2163dec9927af7c055b6654e97d4c;hb=5a1bd817b82ad613b1b63738dfa4a08746531a96;hpb=bb96daf441402cb6def2c20cc20f51d3d160b6e1 diff --git a/src/config/linux-version b/src/config/linux-version index a6759ec..caa7b25 100644 --- a/src/config/linux-version +++ b/src/config/linux-version @@ -40,15 +40,21 @@ CAN_BUILD="" for VERS in $LINUX_VERS ; do dir=$LINUX_SRCDIR$VERS if [ ! -d $dir ] ; then + dir=$LINUX_SRCDIR + if [ ! -d $dir ] ; then echo "ERROR: Cannot build for Linux kernel $VERS: $dir does not exist." errors=true continue + fi fi header=$LINUX_SRCDIR$VERS/include/linux/version.h if [ ! -f $header ] ; then - echo "ERROR: Cannot build for Linux kernel $VERS: $header does not exist." - errors=true - continue + header=$LINUX_SRCDIR/include/linux/version.h + if [ ! -f $header ] ; then + echo "ERROR: Cannot build for Linux kernel $VERS: $header does not exist." + errors=true + continue + fi fi vers=`fgrep UTS_RELEASE $LINUX_SRCDIR$VERS/include/linux/version.h |