[Lunar-commits] CVS: moonbase/x11/fglrx BUILD,1.2,1.3

Auke Kok sofar at lunar-linux.org
Sun May 9 16:47:25 GMT 2004


Update of /var/cvs/lunar/moonbase/x11/fglrx
In directory dbguin.lunar-linux.org:/tmp/cvs-serv7149

Modified Files:
	BUILD 
Log Message:
This is the properway to check, grep 2.6 also matches May 2 6:31... better get it from the right place.


Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/x11/fglrx/BUILD,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- BUILD	9 May 2004 16:09:45 -0000	1.2
+++ BUILD	9 May 2004 16:47:23 -0000	1.3
@@ -3,12 +3,14 @@
   if uname -a | grep -q SMP ; then
     SMP="-SMP"
   fi
-  if ls /usr/src/linux -l | grep -q 2.6 ; then
-    unset K
-    K=k
+  KERNEL_VERSION=$(grep UTS_RELEASE /usr/src/linux/include/linux/version.h  | cut -d'"' -f2)
+  if echo $KERNEL_VERSION | grep -q '^2.6' ; then
+    MOD_EXT=ko
+  else
+    MOD_EXT=o
   fi
-  KMOD=fglrx.$(uname -r)${SMP}.${K}o
-  NMOD=fglrx.${K}o
+  KMOD=fglrx.$(uname -r)${SMP}.${MOD_EXT}
+  NMOD=fglrx.${MOD_EXT}
 
   chown -R root:root . &&
   find . -type d -exec chmod 755 {} \; &&



More information about the Lunar-commits mailing list