On Thu, Feb 18, 2016 at 12:01 PM, Martin Landa <[email protected]> wrote:
> 2016-02-18 11:58 GMT+01:00 Markus Neteler <[email protected]>:
>> echo $OSTYPE
>> linux-gnu
>>
>> ?
>
> lsb_release -i
> Distributor ID: Debian
here:
lsb_release -i
Distributor ID: Fedora
this would even allow fine-tuned messages. However, the
redhat-lsb-core or whatever it is called elsewhere may not be present.
The order could be
- try lsb_release -i: if success, print devel package name;
- if it fails, try $OSTYPE: if success, print choice of devel pkg names;
- if it fails: if success, print current generic message.
Markus
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev