generating code to run multiple targets
Andrew Klossner
andrew at frip.wv.tek.com
Fri Apr 21 08:51:54 AEST 1989
.>>From the SunOS manpage MACHID(1):
.>> sun, iapx286, i386, m68k, pdp11, sparc, u3b, u3b2, u3b5, u3b15, vax
.>> The list of processors implies that this is not a Sun-ism, but comes
.>>with standard BSD 4.x. What have I been missing from this discussion???
.>I posted a "machine" shell script last year which checks for a whole bunch of
.>machines, it was always the One Right UNIXy thing to have *one* command
.> machine # write the processor type to stdout
.>so that one would simply say
.> case `machine` of ...
But this mechanism allows only one machine type.
On a Sun-3, for example, I would expect both 'sun' and 'm68k' to be true.
-=- Andrew Klossner (uunet!tektronix!orca!frip!andrew) [UUCP]
(andrew%frip.wv.tek.com at relay.cs.net) [ARPA]
More information about the Comp.unix.wizards
mailing list