Hi Guys Does anyone know of a reliable way to detect if a system is running SUSE Linux or not from a Makefile? Regards -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
Hi Peter, afaik SuSE distros have a file "/etc/SuSE-release", which contains a short summary (name, version). Hope this helps, Laur On Monday 14 February 2005 16:08, Peter Nixon wrote:
Hi Guys
Does anyone know of a reliable way to detect if a system is running SUSE Linux or not from a Makefile?
Regards
--
Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
-- Laur Ivan Tel : +353-1-6674336 Software Design Engineer eMail: laur.ivan@corvil.com Corvil Ltd.
On Monday 14 February 2005 18:15, Laur Ivan wrote:
Hi Peter,
afaik SuSE distros have a file "/etc/SuSE-release", which contains a short summary (name, version).
Thanks. This is what I ended up using.. (I knew about this files existence, but was being thick headed) See: http://www.aefirion.org/projects/aefirion/file/trunk/zaptel/scripts/Makefile For more info about Aefirion see: http://www.aefirion.org/ Thanks everyone -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
Peter, On Monday 14 February 2005 08:08, Peter Nixon wrote:
Hi Guys
Does anyone know of a reliable way to detect if a system is running SUSE Linux or not from a Makefile?
Perhaps you could use the existence of the file /etc/SuSE-release?
Peter Nixon
Randall Schulz
On Monday 14 February 2005 11:20 am, Randall R Schulz wrote:
Peter,
On Monday 14 February 2005 08:08, Peter Nixon wrote:
Hi Guys
Does anyone know of a reliable way to detect if a system is running SUSE Linux or not from a Makefile?
Perhaps you could use the existence of the file /etc/SuSE-release? /etc/issue also contains the release information.
--
Jerry Feldman
Jerry, On Monday 14 February 2005 08:27, Jerry Feldman wrote:
On Monday 14 February 2005 11:20 am, Randall R Schulz wrote:
Peter,
On Monday 14 February 2005 08:08, Peter Nixon wrote:
Hi Guys
Does anyone know of a reliable way to detect if a system is running SUSE Linux or not from a Makefile?
Perhaps you could use the existence of the file /etc/SuSE-release?
/etc/issue also contains the release information.
Yes. That's what I was trying to remember. I think it's present on most Unix systems, but then you have to interrogate the contents and figure out what sort of system is hosting the "make" execution. The SuSE-release file identifies the system as a SuSE one (the OP's specific concern) without having to interpret the file's contents.
Jerry Feldman
Randall Schulz
* Peter Nixon
Does anyone know of a reliable way to detect if a system is running SUSE Linux or not from a Makefile?
grep -i suse /proc/version -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
On Monday 14 February 2005 19:12, Patrick Shanahan wrote:
* Peter Nixon
[02-14-05 11:10]: Does anyone know of a reliable way to detect if a system is running SUSE Linux or not from a Makefile?
grep -i suse /proc/version
This doesn't work on my system. and yes my kernel is installed from rpm.. -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
The Monday 2005-02-14 at 12:12 -0500, Patrick Shanahan wrote:
grep -i suse /proc/version
Mmmm. cer@nimrodel:~> grep -i suse /proc/version Linux version 2.6.5-7.145-default (geeko@buildhost) (gcc version 3.3.3 (SuSE Linux)) #1 Thu Jan 27 09:19:29 UTC 2005 It yields the complete line. Anyway, the term "SuSE" refers to the compiler version, I think, not the system version. -- Cheers, Carlos Robinson
Peter Nixon wrote:
Hi Guys
Does anyone know of a reliable way to detect if a system is running SUSE Linux or not from a Makefile?
running a SuSE-kernel or a SuSE-install? Our systems generally run SuSE-installs, but rarely SuSE-kernels. /Per Jessen, Zürich -- http://www.spamchek.ch/freetrial - jetzt für 30 Tage ausprobieren - kostenlos und unverbindlich!
participants (7)
-
Carlos E. R.
-
Jerry Feldman
-
Laur Ivan
-
Patrick Shanahan
-
Per Jessen
-
Peter Nixon
-
Randall R Schulz