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

Moritz Heiber moe at lunar-linux.org
Tue Dec 28 12:48:52 UTC 2004


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

Modified Files:
	PRE_BUILD 
Log Message:
More checks .. more secure .. (?)


Index: PRE_BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/kernel/linux-2.6/PRE_BUILD,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- PRE_BUILD	27 Dec 2004 19:16:01 -0000	1.3
+++ PRE_BUILD	28 Dec 2004 12:48:50 -0000	1.4
@@ -23,10 +23,12 @@
 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



More information about the Lunar-commits mailing list