MATRIXx

cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting platform from a "tpl" autocode script

Is there a way to detect the platform (windows/unix) inside a tpl script (something
similar to platform function in xmath) ?
 
Thanks
0 Kudos
Message 1 of 3
(9,123 Views)

Hello Farshid,

I have not been able to find  something for the tpl.  So far I am able to get that info from Xmath with the function you specified and also with the version command.
In System Build you could use the same through a Mathscript block.
I will try to find a solution for tpl.

Ricardo

0 Kudos
Message 2 of 3
(9,094 Views)
"os_uname_s" TPL token return "PC" on windows platform.
 
found this in "c_sim.tpl":
 
@IFF STRCMP(os_uname_s, "PC")@@
@gen_pc_makefile()@@
@ELSE@@
@gen_unix_makefile()@@
@ENDIFF@@
 
 
This is not described in the TPL user's guide. I also found "ucb_filenames_ls" and "nucb_filenames_i" tokens that are not listed in TPL user's guide. are there other TPL undocumented features?
 
Farshid
 
0 Kudos
Message 3 of 3
(8,239 Views)