[uClibc-cvs] uClibc/extra/scripts fix_includes.sh,1.2,1.3

Erik Andersen andersen at uclibc.org
Thu Sep 4 01:39:21 UTC 2003


Update of /var/cvs/uClibc/extra/scripts
In directory winder:/tmp/cvs-serv18016/extra/scripts

Modified Files:
	fix_includes.sh 
Log Message:
Minor cosmetic cleanups to avoid getting spurious bug reports.


Index: fix_includes.sh
===================================================================
RCS file: /var/cvs/uClibc/extra/scripts/fix_includes.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- fix_includes.sh	3 Sep 2003 12:49:01 -0000	1.2
+++ fix_includes.sh	4 Sep 2003 01:39:18 -0000	1.3
@@ -59,22 +59,34 @@
     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;
 
@@ -88,6 +100,7 @@
 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?";
     echo "You really should configure your kernel source tree so I";
@@ -95,6 +108,7 @@
     echo ""
     echo "Attempting to guess a usable value....";  
     echo ""
+    echo "";
     sleep 1;
 
     if [ "$TARGET_ARCH" = "powerpc" ];then




More information about the uClibc-cvs mailing list