On 10 Apr 2014, at 18:20, Dirk Hohndel <[email protected]> wrote:

Hi,

> I asked Joshua to send it here so I could test it and everyone could
> provide input. Robert (or any of the other main Mac based developers),
> can you make sure this makes sense? Lubomir, what about your native
> builds on Windows, does this work?

it semi-works on mac:

 #ifdef Q_OS_UNIX

is indeed true. But /etc/os-release does not exist and thus the fstat on it 
fails and only the osName is correctly set as “Darwin” while the osType is 
incorrectly set as “Linux” and the version and otherDetails are the empty 
string.

Apparently the way to get the OS X version is to run sw_vers which in my case 
returns

th-nb-tmpmbp02:subsurface Robert.Helling$ sw_vers 
ProductName:    Mac OS X
ProductVersion: 10.9.2
BuildVersion:   13C64

The three lines can be obtained by themselves with command line switches like 
-productVersion

Best
Robert

--                                                                              
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO 
Robert C. Helling     Elite Master Course Theoretical and Mathematical Physics  
                      Scientific Coordinator                                   
                      Ludwig Maximilians Universitaet Muenchen, Dept. Physik    
print "Just another   Phone: +49 89 2180-4523  Theresienstr. 39, rm. B339       
    stupid .sig\n";   http://www.atdotde.de 

_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to