Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!tektronix!orca!tekecs!frip!andrew From: andrew@frip.wv.tek.com (Andrew Klossner) Newsgroups: comp.unix.wizards Subject: Re: generating code to run multiple targets Message-ID: <11319@tekecs.GWD.TEK.COM> Date: 20 Apr 89 22:51:54 GMT References: <19190@adm.BRL.MIL> <1024@quintus.UUCP> Sender: andrew@tekecs.GWD.TEK.COM Organization: Tektronix, Wilsonville, Oregon Lines: 16 .>>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@relay.cs.net) [ARPA]