CVS: moonbase/kernel/linux-vanilla BUILD,1.8,1.9 PRE_BUILD,1.6,1.7

elaine at lunar-linux.org elaine at lunar-linux.org
Fri Oct 3 19:38:38 GMT 2003


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

Modified Files:
	BUILD PRE_BUILD 
Log Message:
fixed backup routine and added -f switch to ln commands


Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/kernel/linux-vanilla/BUILD,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- BUILD	27 Aug 2003 21:08:53 -0000	1.8
+++ BUILD	3 Oct 2003 19:38:36 -0000	1.9
@@ -26,13 +26,18 @@
 done
 
 
-backup_modules()  {
+backup_mods_krnl()  {
 
   if    [  -d  /lib/modules/$VERSION-vanilla      ];  then
     rm   -rf   /lib/modules/$VERSION-vanilla.old
     mv         /lib/modules/$VERSION-vanilla      \
                /lib/modules/$VERSION-vanilla.old
   fi
+  if    [  -f  /boot/vanilla-$VERSION   ];  then
+    mv -f /boot/vanilla-$VERSION.old /boot/vanilla-$VERSION.old_2
+    cp -p /boot/vanilla-$VERSION /boot/vanilla-$VERSION.old
+  fi
+
 
 }
 
@@ -45,10 +50,10 @@
   make  bzImage          &&
   make  modules          &&
   prepare_install        &&
-  backup_modules         &&
+  backup_mods_krnl         &&
   make  modules_install  &&
   cp    arch/i386/boot/bzImage   /boot/vanilla-$VERSION &&
   # link the modules so depmod can find them!
-  ln -s /lib/modules/$VERSION-vanilla /lib/modules/$VERSION
+  ln -f -s /lib/modules/$VERSION-vanilla /lib/modules/$VERSION
 
 ) > $C_FIFO 2>&1

Index: PRE_BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/kernel/linux-vanilla/PRE_BUILD,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- PRE_BUILD	18 Jun 2003 02:39:00 -0000	1.6
+++ PRE_BUILD	3 Oct 2003 19:38:36 -0000	1.7
@@ -3,7 +3,7 @@
 
 unpack  $SOURCE
 
-ln  -s     linux-$VERSION  linux
+ln  -sf     linux-$VERSION  linux
 
 if  [  -f   $CONFIG_CACHE/.config  ];  then
   cp        $CONFIG_CACHE/.config  /usr/src/linux




More information about the Lunar-commits mailing list