[jamming] Is there a way to find the OS ?

David Turner dturner at nds.com
Mon Mar 20 05:27:54 PST 2006


Groleo Marius a écrit :
> Hi.
>
> Does jam define any MACRO, that defines the UNIX flavor it runs on ?
> Because if a Jamfile is interpreted on Linux or FreeBSD, jam will see
> both as $(UNIX),
> but still there are differences between them.
>
>   
On Unix systems, Jam automatically defines the JAMUNAME variable. Its 
content is defined
by calling the uname() system call which should allow you to determine 
exactly on what Unix
you're running.

And there is also OSPLAT which corresponds to the CPU

Hope this helps,

- David Turner

> --
> Regards, Groleo!
>
> # Use "Reply to All" on mailing lists.
> # touch universe
> # chmod +x universe
> # ./universe
>
> _______________________________________________
> jamming mailing list  -  jamming at perforce.com
> http://maillist.perforce.com/mailman/listinfo/jamming
>   


***********************************************************************************
Information contained in this email message is confidential and may be privileged, and is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster at nds.com and destroy the original message.
*********************************************************************************** 



More information about the jamming mailing list