[tex-live] New version of ifplatform

Will Robertson wspr81 at gmail.com
Thu Sep 10 09:21:00 CEST 2009


On 10/09/2009, at 8:55 AM, Heiko Oberdiek wrote:

> On Wed, Sep 09, 2009 at 11:50:01PM +0930, Will Robertson wrote:
>
>> The documentation has a line "This documentation was compiled on
>> \platformname" which blows up if the \platform name is  
>> "CYGWIN_NT-5.1".
>
> The string came from "uname"? Then either the catcodes can be
> set to save values by reading the program output in a verbatim
> manner. Or the result can be converted using LaTeX's
> \@onelevel at sanitize or e-TeX's \detokenize, Example for the
> latter:
>  \edef\platform{\detokenize\expandafter{\platform}}

Thanks Heiko.
I considered that one, but have now added an explicit \ifcygwin and  
\cygwinname macro to support Cygwin use. Any other use of  
\platformname arising from the output of uname shouldn't contain weird  
chars (as far as I know -- based off Wikipedia's list of known uname  
outputs).

If people request it, I'm happy to support an arbitrary mapping from  
unames to "friendly" names such as already happens for Window/Linux/ 
Mac OS X/Cygwin, but are there really that many Solaris/FreeBSD/etc.  
users of ifplatform around the place?

Best regards,
Will




More information about the tex-live mailing list