[Lunar-commits] r18961 - lunar/trunk/var/lib/lunar/functions

Auke Kok sofar at lunar-linux.org
Wed Mar 1 08:23:37 UTC 2006


Author: sofar
Date: 2006-03-01 08:23:34 +0000 (Wed, 01 Mar 2006)
New Revision: 18961

Modified:
   lunar/trunk/var/lib/lunar/functions/optimize.lunar
Log:
Properly set BUILD - x86/x86_64 are easy. We also cast the $(uname -m) to lowercase as it should be, and append -gnu as well (making "sparc64-linux-gnu"). I'm contemplating making the BUILD variable read-only as you cannot really change it, just like you cannot change the PLATFORM. `arch` will always say i686 too even if you are `i386` optimized completely. Keeping this scheme will simplify things for the plugins.


Modified: lunar/trunk/var/lib/lunar/functions/optimize.lunar
===================================================================
--- lunar/trunk/var/lib/lunar/functions/optimize.lunar	2006-03-01 08:12:53 UTC (rev 18960)
+++ lunar/trunk/var/lib/lunar/functions/optimize.lunar	2006-03-01 08:23:34 UTC (rev 18961)
@@ -59,5 +59,10 @@
 
 # PLATFORM - translated uname -m / arch
 PLATFORM=$(uname -m | sed 's/i[3456]86/x86/')
-BUILD=$(uname -m )-pc-linux-gnu
-
+# BUILD - 
+case $PLATFORM in
+	x86|x86_64)
+		BUILD=$(uname -m)-pc-linux-gnu ;;
+	*)		
+		BUILD=$(uname -m | sed 's/.*/\L&/g')-linux-gnu ;;
+esac



More information about the Lunar-commits mailing list