Re: How to determine distribution

From: Akop Pogosian (akopps+usenet_at_ocf.berkeley.edu)
Date: 04/26/03


Date: Fri, 25 Apr 2003 23:29:27 +0000 (UTC)

Devrim Erdem <devrim@machsim.com> wrote:
> Hello,

> I have a makefile and some csh scripts which need to determine on
> which linux distribution the script is running.

> I noticed suse had env. var VENDOR=suse

> and redhat has the file

> /etc/redhat-release

> file.

> But I am looking for a method which is the right way. Is there any
> general solution to this issue ?

I don't think there is ever going to be a portable way for doing this.

-- 
Akop Pogosian
This space has been accidentally left blank.


Relevant Pages

  • Re: newbie - HTML character codes
    ... Fredrik, I had come across your script while googling for solutions, ... 4.00pm We set off again; this time via Tony's home to collect ... ofile.writefor a more general solution to the actual replace problem, ...
    (comp.lang.python)
  • RE: Proper way to start a program at log-on
    ... Make a shell script like the ones in /usr/local/etc/rc.d to start and ... The script MUST be named whatever.sh and must be executable. ... This is the general solution. ... I run the Distributed Net 'dnetc' program. ...
    (freebsd-questions)
  • Re: How do I delete files over x days old when find doesnt work?
    ... tsiaq wrote: ... happend when I tried to use my script: ... As a general solution to this problem, I have a script. ...
    (comp.unix.aix)