From Kurt.Hornik@ci.tuwien.ac.at  Thu Apr 24 07:51:32 1997
From: Kurt.Hornik@ci.tuwien.ac.at (Kurt Hornik)
Date: Thu, 24 Apr 1997 08:51:32 +0200
Subject: R-alpha: Re: R-beta: multiple binary types
In-Reply-To: <Pine.SUN.3.91.970423185754.10880F-300000@babcomm>
References: <Pine.SUN.3.91.970423185754.10880F-300000@babcomm>
Message-ID: <199704240651.IAA17442@aragorn.ci.tuwien.ac.at>

>>>>> Gregory R Warnes writes:

> I've modified the "$RHOME/bin/R" and "$RHOME/cmd/filename" so that you 
> can use the same directories for multiple machines.  That is, machines 
> running various flavors of UNIX can access the same directories.

> The modified structure adds the directories

> $RHOME/bin/$OSTYPE/
> $RHOME/lib/$OSTYPE/

> to hold the machine specific binaries.

> For instance, here the $RHOME directory contains two subdirectories,

> $RHOME/bin/solaris/
> $RHOME/bin/sunos4/

> which each hold the appropriate R.binary file.  

> These two modified functions assume that the environment variable $OSTYPE 
> is appropriately set, as is done automatically by the shell tcsh.  If it 
> is not set, the directory names collapse to the original values,
> 	$RHOME/bin/ and $RHOME/lib/

> ...

Is OSTYPE defined by POSIX?  I tried bash, ksh and csh on my Debian
GNU/Linux system.  Whereas all have it, we have

	bash, ksh:	Linux
	tcsh, csh:	linux

which is unfortunate but one could live with that (lowercasing ...).
The real problem is that the OS Linux exists on several hardware
platforms (ix86, alpha, solaris, m68k, ...), so one would really need

	${OSTYPE}-${HOSTTYPE}

Again not knowing what POSIX says, here are the results:

	bash, ksh:	i386
	tcsh, csh:	i386-linux

OH NO!

***

Note also that whereas the suggestion is perfect for binaries, it is in
a way `orthogonal' to rearranging the R tree into

	<library>/<section>/<type>

structure ... hmm, or should we have <platform> dirs for exec and objs?

-k
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: Re: R-beta: multiple binary types
Kurt Hornik