>>> As I work to try to improve rootless's portability (I'm now  
>>> trying to
>>> go for both Cygwin and OS X) I'd like to alter Get_Architecture. For
>>> non-Linux kernels, I'd like to append the kernel type to the result.
>>> I'd also like to account for OS X's incorrect uname -m output.
>
> How is that going? Does it take too much "ifdef"fing in the scripts?
> Could you post a patch here before committing so I could look at the
> changes needed for portability? I think it could be cleaner if
> conditional features were configured through Directories.conf than
> based on architecture checks, so that different environments could
> have different Directories.conf entries, but if it's not a lot of
> stuff, then I figured it would be okay.

diff -ruwa orig/Scripts/Functions/GoboLinux tools/Scripts/Functions/ 
GoboLinux
--- orig/Scripts/Functions/GoboLinux    2006-09-09 18:43:28.000000000  
-0300
+++ tools/Scripts/Functions/GoboLinux   2006-09-09 18:16:35.000000000  
-0300
@@ -8,9 +8,18 @@

     case "$arch" in
        arm*) arch=arm ;;
+      "Power Macintosh") arch=ppc ;;
     esac

-   echo "$arch"
+   kernelType="`uname -s`"
+
+   case "$kernelType" in
+      [lL]inux) kernelType="";;
+      CYGWIN*) kernelType=".Cygwin" ;;
+      *) kernelType=".$kernelType" ;;
+   esac
+
+   echo "$arch$kernelType"
}

function Get_Version() {

_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to