[Lunar-commits] CVS: moonbase/kernel/linux-2.6-cko PRE_BUILD, 1.2, 1.3

Jens Luedicke perldude at lunar-linux.org
Sun Jan 2 14:41:11 UTC 2005


Update of /var/cvs/lunar/moonbase/kernel/linux-2.6-cko
In directory espresso.foo-projects.org:/tmp/cvs-serv10212/linux-2.6-cko

Modified Files:
	PRE_BUILD 
Log Message:
update to new PRE_BUILD files



Index: PRE_BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/kernel/linux-2.6-cko/PRE_BUILD,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- PRE_BUILD	27 Dec 2004 19:09:26 -0000	1.2
+++ PRE_BUILD	2 Jan 2005 14:41:09 -0000	1.3
@@ -7,27 +7,31 @@
 
     unpack  $SOURCE
 
-    mv linux-${KERNEL_VERSION} linux-${VERSION}
+    mv	linux-${KERNEL_VERSION} linux-${VERSION}
     ln  -sf  linux-${VERSION}  linux
 
     chown  root.root  $BUILD_DIRECTORY/linux
     chown  -R  root.root  $BUILD_DIRECTORY/linux-${VERSION}
 
-    cd  linux/
-
-    if  [ -f $CONFIG_CACHE/.config.2.6.stable ]; then
-	cp $CONFIG_CACHE/.config.2.6.stable $BUILD_DIRECTORY/linux/.config;
-    elif [ -f $CONFIG_CACHE/.config.beta ]; then
-	cp $CONFIG_CACHE/.config.beta $BUILD_DIRECTORY/linux/.config;
-    fi
-
 else
 
     message "Sources found: $BUILD_DIRECTORY/linux-${VERSION}"
-        
-    if [ "`readlink linux`" != "linux-${VERSION}" ]; then
-	rm -rf linux
+    if ! validate_source_dir ; then
+      exit 1
+    else
+      if [ "`readlink linux`" != "linux-${VERSION}" ]; then
+        rm -rf linux
 	ln -s linux-${VERSION} linux
+      fi
     fi
-			    
 fi
+    
+
+cd  linux/
+
+if  [ -f $CONFIG_CACHE/.config.2.6.stable ]; then
+    cp $CONFIG_CACHE/.config.2.6.stable $BUILD_DIRECTORY/linux/.config;
+elif [ -f $CONFIG_CACHE/.config.beta ]; then
+    cp $CONFIG_CACHE/.config.beta $BUILD_DIRECTORY/linux/.config;
+fi
+



More information about the Lunar-commits mailing list