[Lazarus] RE : Determining OS
ik
idokan at gmail.com
Sun Jul 31 20:13:19 CEST 2011
On Sun, Jul 31, 2011 at 20:37, Graeme Geldenhuys <graemeg.lists at gmail.com>wrote:
> 2011/7/31 Ludo Brands <ludo.brands at free.fr>:
> > Have you tried uname?
>
> That only gives you the kernel version.
>
>
> > lsb_release on ubuntu 10 64 bit says: no LSB modules are available. On
> > debian lenny for arm: command not found...
>
> Don't you guys READ!!! I specifically showed the parameters you need
> to specify with the 'lsb_release' command so you DO GET THE RIGHT
> OUTPUT.
>
> Try this:
>
> $ lsb_release -a
>
>
> Or from my original post...
>
$ lsb_release -a
LSB Version: n/a
Distributor ID: n/a
Description: (none)
Release: n/a
Codename: n/a
It is missing from some implementations. Arch Linux (my distro) is spread
and not a small based distro, so lsb is not the way, only LSB based distro's
are.
But the original person that asked the question should explain better what
he is looking for. It might not require to detect the distro itself for
example, or to allow the package builder to tweak things, or at the first
run to ask the distro from a list of supported distro and save it in
configuration files.
It's all depends on what he requires to do.
> >
> --------------------------------------------------------------------------
> > $ lsb_release --help
> > Usage: lsb_release [options]
> >
> > Options:
> > -h, --help show this help message and exit
> > -v, --version show LSB modules this system supports
> > -i, --id show distributor ID
> > -d, --description show description of this distribution
> > -r, --release show release number of this distribution
> > -c, --codename show code name of this distribution
> > -a, --all show all of the above information
> > -s, --short show all of the above information in short format
> >
>
>
> --
> Regards,
> - Graeme -
>
>
> _______________________________________________
> fpGUI - a cross-platform Free Pascal GUI toolkit
> http://fpgui.sourceforge.net
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110731/aa0549cb/attachment-0003.html>
More information about the Lazarus
mailing list