[Adium-devl] [Adium-svn] rev 21731 - trunk/Utilities/dep-build-scripts

Colin Barrett timber at lava.net
Wed Nov 28 16:35:21 UTC 2007


On Nov 28, 2007, at 7:30 AM, adium-svn-request at adiumx.com wrote:

> Added a flag to flip on 10.4 to allow current_step.sh to work. This  
> obviously should be automatic, but I'm not sure how to make it such

`sw_vers -productVersion | cut -f 1,2 -d '.'` will return "10.5" on  
Leopard, and "10.4" on Tiger.

You could also do `uname -r | cut -f 1 -d '.'` but then you get "9" on  
Leopard and "8" on Tiger. Not quite as cool ;)

There's also `hwpref os_class` which should in theory give you the Big  
Cat name[1] but doesn't seem to work on Leopard.

-Colin

[1] In case you look at the docs for it and are curious, Smeagol was  
the G5 version of Jaguar.




More information about the devel mailing list