[34538] trunk/base/src/port1.0/portmain.tcl

Anders F Björklund afb at macports.org
Wed Feb 27 14:18:39 PST 2008


Ryan Schmidt wrote:

>> +set macosx_version {}
>> +if {$os_platform == "darwin"} {
>> +    # This will probably break when Apple changes versioning
>> +    set macosx_version [expr 10.0 + ($os_major - 4) / 10.0]
>> +}
>
> I expect "sw_vers -productVersion" would always work...

Yeah, but after getting bashed for using system() calls
I didn't really want to fork a call to it on each run ?

--anders



More information about the macports-dev mailing list