Re: Test for redhatness (when building RPM's)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Philip Prindeville wrote:
I'm trying to tweak a package so that it autodetects when it's being
built under Redhat/Fedora (et al) and does the right thing.

Is there a simple and foolproof test for this?

I suppose you could check for the file /etc/redhat-release

	$ cat /etc/redhat-release
	Fedora Core release 4 (Stentz)


Thanks,

-Philip


-M


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux