CVS: moonbase/kernel/linux-beta BUILD,1.6,1.7

nestu at lunar-linux.org nestu at lunar-linux.org
Wed Oct 15 17:43:12 GMT 2003


Update of /var/cvs/lunar/moonbase/kernel/linux-beta
In directory dbguin.lunar-linux.org:/tmp/cvs-serv26980

Modified Files:
	BUILD 
Log Message:
Adding fallbacks if the selected configuration method is not available


Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/kernel/linux-beta/BUILD,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- BUILD	15 Oct 2003 01:26:15 -0000	1.6
+++ BUILD	15 Oct 2003 17:43:10 -0000	1.7
@@ -2,17 +2,22 @@
 
 while  
     case  $CONFIG_KERNEL in
-	y|Y)  
-	    if [ "$CONFIG_METHOD" == "xconfig" ]; then
-		if [ "$DISPLAY" ]; then
-	    	    make xconfig
-	        else
-	    	    message xconfig could find display falling back to menuconfig
-		    make menuconfig
-	        fi
-	    else
-		make  $CONFIG_METHOD
-	    fi
+	y|Y)
+	    case $CONFIG_METHOD in
+		xconfig )  
+		    if [ "$DISPLAY" ]; then
+	    		make xconfig || make menuconfig || make config
+	    	    else
+			make menuconfig || make config
+		    fi
+		    ;;
+
+		menuconfig )
+		    make menuconfig || make config ;;		
+		
+		config )
+		    make config ;;		
+	    esac
 
             if  query  "Repeat $CONFIG_METHOD?  "  n ; then  
 		CONFIG_KERNEL=y
@@ -24,9 +29,7 @@
 
 	*)  
 	    false  ;;
-	    
     esac
-
 do
     true
 done




More information about the Lunar-commits mailing list