From 5fdfd4f03203d5208b4db156e6929eab7b52ccfe Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 4 Sep 2003 01:39:18 +0000 Subject: Minor cosmetic cleanups to avoid getting spurious bug reports. --- extra/scripts/fix_includes.sh | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'extra') diff --git a/extra/scripts/fix_includes.sh b/extra/scripts/fix_includes.sh index 2318686ed..1cb3f184b 100755 --- a/extra/scripts/fix_includes.sh +++ b/extra/scripts/fix_includes.sh @@ -59,22 +59,34 @@ while [ "$1" ]; do esac; done; -if [ ! -d "$KERNEL_SOURCE" ]; then - echo "$KERNEL_SOURCE is not a directory"; +if [ ! -f "$KERNEL_SOURCE/include/linux/version.h" ]; then + echo ""; + echo ""; + echo "The file $KERNEL_SOURCE/include/linux/version.h is missing!"; + echo "Perhaps you forgot to configure your kernel source?" + echo ""; + echo ""; exit 1; fi; -if [ ! -f "$KERNEL_SOURCE/include/linux/version.h" ]; then - echo "The file $KERNEL_SOURCE/include/linux/version.h is missing\!"; - echo "Perhaps you forgot to configure your kernel source?" +if [ ! -d "$KERNEL_SOURCE" ]; then + echo ""; + echo ""; + echo "$KERNEL_SOURCE is not a directory"; + echo ""; + echo ""; exit 1; fi; KVER=`gcc -I$KERNEL_SOURCE/include -E -dM $KERNEL_SOURCE/include/linux/version.h | grep UTS_RELEASE | awk '{ print $3 }' | sed 's/\"//g'` if [ -z "$KVER" ] ; then + echo ""; + echo ""; echo "Unable to determine kernel version." echo "Perhaps your kernel source tree is broken?" + echo ""; + echo ""; exit 1; fi; @@ -87,6 +99,7 @@ echo -e "\n" rm -f include/asm if [ ! -d "$KERNEL_SOURCE/include/asm" ]; then + echo ""; echo ""; echo "The symlink $KERNEL_SOURCE/include/asm is missing\!"; echo "Perhaps you forgot to configure your kernel source?"; @@ -95,6 +108,7 @@ if [ ! -d "$KERNEL_SOURCE/include/asm" ]; then echo "" echo "Attempting to guess a usable value...."; echo "" + echo ""; sleep 1; if [ "$TARGET_ARCH" = "powerpc" ];then -- cgit v1.2.3