Re: Running different binaries based on OS version.
Re: Running different binaries based on OS version.
- Subject: Re: Running different binaries based on OS version.
- From: Hasan Diwan <email@hidden>
- Date: Mon, 29 Jul 2002 17:20:55 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Charles:
You could write a shell script to select them, eg:
#!/bin/sh
VERSION=`uname -r`
if `echo $VERSION | grep 5.5 - | true`
then
/usr/bin/open -a foo-10.1
elif `echo $VERSION | grep 1.0 - | true`
then
/usr/bin/open -a foo-10.0
fi
... and so on, but there must be an easier way.
On Monday, July 29, 2002, at 03:33 PM, Charles Jolley wrote:
Does anyone know if there is a way to have my application launch a
different binary under...let's say Mac OS X 10.0 and 10.1 (or 10.2, but
we can't talk about that. ;-). I thought about writing a booter app
that would select the appropriate binary and launch it, but I was
curious if there was any facility in the OS I could use instead.
Hasan Diwan
OpenPGP KeyID: 0xBE42DCA6
Fingerprint: 1CB0 47E3 0A24 DAC1 DCCA 4225 F166 40C2 BE42 DCA6
http://hasandiwan.net/~hdiwan/gpg.key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)
iD8DBQE9RbG+8WZAwr5C3KYRAhvxAJ4t3P/Erm6Ko7EidXyqHexDAEFFZQCcCuGh
r3eO7VpmZ9ZaVz4irUZr2/g=
=dxwP
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.