• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[OT] System version from script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OT] System version from script?


  • Subject: [OT] System version from script?
  • From: Chris Espinosa <email@hidden>
  • Date: Wed, 9 May 2007 12:04:16 -0700

On May 9, 2007, at 11:46 AM, David Litwin wrote:

Sorry that this isn't a question about XCode itself, but it follows on

many issues that are XCode related (i.e. development of apps for 10.3

and 10.4 in one bundle).

My client supports 10.3 and 10.4, and currently is a service that runs

as a StartupItem.  I'd like it to run as a launchd agent for 10.4, which

means some minor changes to the install program.

How does one determine the system version from a shell script?  In code

I use sys_version_of(), but the install script will not have access to

that.  I haven't found something like uname (gives Darwin info) that

will give me the MacOS version info.  I'm sure I'm missing something

simple, but haven't hit on the right searches, apparently.


$ apropos version
<snipped tons o'crap>
sw_vers(1)               - print Mac OS X operating system version information
<snipped tons more crap>
$ sw_vers -help
Usage: sw_vers [-productName|-productVersion|-buildVersion]
$ sw_vers -productVersion
10.4.9

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: [FAQ] Linking to separate libraries per-architecture [was: Problem Building x86 Project on PowerPC] (From: Chris Espinosa <email@hidden>)
 >Re: [FAQ] Linking to separate libraries per-architecture [was: Problem Building x86 Project on PowerPC] (From: Jeffrey Oleander <email@hidden>)
 >Re: [FAQ] Linking to separate libraries per-architecture [was: Problem Building x86 Project on PowerPC] (From: "Shawn Erickson" <email@hidden>)
 >System version from script? (From: "David Litwin" <email@hidden>)

  • Prev by Date: System version from script?
  • Next by Date: Re[2]: Problem Building x86 Project on PowerPC
  • Previous by thread: System version from script?
  • Next by thread: Re[2]: Problem Building x86 Project on PowerPC
  • Index(es):
    • Date
    • Thread