[maemo-developers] Find out Maemo version from script
From: Cornelius Hald hald at icandy.deDate: Tue Dec 15 20:50:48 EET 2009
- Previous message: Find out Maemo version from script
- Next message: Find out Maemo version from script
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 2009-12-15 at 17:44 +0200, Marius Gedminas wrote: > On Tue, Dec 15, 2009 at 04:37:23PM +0100, Alberto Garcia wrote: > > On Tue, Dec 15, 2009 at 12:21:58PM +0100, Cornelius Hald wrote: > > > > > While developing inside the SDK I used /etc/maemo_version (which is > > > provided by the package maemo-version) to alter the runtime behavior > > > of some scripts. > > > > I think it's simpler to check the version of some installed packages > > (using e.g. pkg-config) > > And it's even better to check for the *features* you want, rather than > the version of the software that has these features. Thanks Frantisek, Alberto and Marius! I think I will use the osso-product-info command as this seems to be the "best" way for me to do it. With the other solutions I have some problems: * /etc/osso_software_version does not exist on my N900. * pkg-config is only for *-dev packages and does not exist (by default) on the N900. * Checking for the feature is not possible, as the "feature" is a bug in some preinstalled library and I don't know in which one. I need this check because I need to figure out whether or not this bug exists and if yes change a couple of files to work around it. So checking for the OSSO_PRODUCT_RELEASE_VERSION with the osso-product-info command should work for me. Thanks for all the suggestions! Conny
- Previous message: Find out Maemo version from script
- Next message: Find out Maemo version from script
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]