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

Jens Luedicke perldude at lunar-linux.org
Mon Dec 27 19:16:04 UTC 2004


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

Modified Files:
	PRE_BUILD 
Log Message:
ooops. sorry. reverting. 



Index: PRE_BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/kernel/linux-2.6/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:24 -0000	1.2
+++ PRE_BUILD	27 Dec 2004 19:16:01 -0000	1.3
@@ -1,43 +1,32 @@
-cd /usr/src
+cd $BUILD_DIRECTORY
 
-if [ ! -d /usr/src/linux-${VERSION} ]; then
+if [ ! -d linux-${VERSION} ]; then
     
-    rm  -rf  linux-${KERNEL_VERSION} # we remove this one just in case
     rm  -rf  linux-${VERSION}
     rm  -rf  linux
 
     unpack  $SOURCE
 
-    # the main kernel tarball unpacks with 2.6.X name, not with the -mm added
-    # so, f.e.: linux-2.6.X will be renamed as linux-2.6.X-mmY
-
-    mv linux-${KERNEL_VERSION} linux-${VERSION}
+    ln  -sf  linux-${VERSION}  linux
 
-    ln  -sf     linux-${VERSION}  linux
-    
-    chown root.root /usr/src/linux
-    chown root.root /usr/src/linux-${VERSION}
-    message "Cd into dir"
-    sleep 1
-    cd /usr/src/linux
+    chown  root.root  $BUILD_DIRECTORY/linux
+    chown  -R  root.root  $BUILD_DIRECTORY/linux-${VERSION}
 
-    patch_it $SOURCE_CACHE/$SOURCE2 1
+    cd  linux/
 
-    if  [  -f   $CONFIG_CACHE/.config-2.6.ck  ];  then
-	message "---------------------Using config-2.6.ck------------------"
-	cp  $CONFIG_CACHE/.config-2.6.ck  /usr/src/linux/.config 
-    elif [ -f  $CONFIG_CACHE/.config.2.6.stable ]; then
-	message "-------------------Using config-2.6-------------------"
-	cp  $CONFIG_CACHE/.config.2.6.stable  /usr/src/linux/.config 
-   fi 
+    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: /usr/src/linux-${VERSION}"
-    
+    message "Sources found: $BUILD_DIRECTORY/linux-${VERSION}"
+        
     if [ "`readlink linux`" != "linux-${VERSION}" ]; then
-	rm -rf linux	
+	rm -rf linux
 	ln -s linux-${VERSION} linux
     fi
-
+			    
 fi



More information about the Lunar-commits mailing list