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

Moritz Heiber moe at lunar-linux.org
Thu Feb 3 20:29:33 UTC 2005


Update of /var/cvs/lunar/moonbase/kernel/linux-2.4-agr
In directory espresso.foo-projects.org:/tmp/cvs-serv24220/linux-2.4-agr

Modified Files:
	PRE_BUILD 
Log Message:
Exchanging the tar checking for a far superiour one


Index: PRE_BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/kernel/linux-2.4-agr/PRE_BUILD,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- PRE_BUILD	28 Jan 2005 17:42:06 -0000	1.3
+++ PRE_BUILD	3 Feb 2005 20:29:30 -0000	1.4
@@ -16,11 +16,13 @@
 ln -s $SOURCE_DIRECTORY /usr/src/linux
 cd $SOURCE_DIRECTORY
 
-# Yes, this is a workaround. Blame tar.
-if [ "$(installed_version tar)" == "1.15.1" ]; then
-  tar jxf $SOURCE_CACHE/$SOURCE --no-same-owner --no-same-permissions --strip-components=1
+# Check wether we're running an up-to-date tar
+if [ `lvu installed tar | cut -d. -f2` -ge 15 ]; then
+  tar xf $SOURCE_CACHE/$SOURCE --no-same-owner \
+  --no-same-permissions --strip-components=1
 else
-  tar jxf $SOURCE_CACHE/$SOURCE --no-same-owner --no-same-permissions --strip-path=1
+  echo "${PROBLEM_COLOR}Error:${DEFAULT_COLOR} Please update your tar module"
+  exit 1
 fi
 
 if [ -f $CONFIG_CACHE/.config ]; then



More information about the Lunar-commits mailing list