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

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

 



On Fri, 2005-08-19 at 11:58 -0600, 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?

Have it depend on the redhat-release RPM.  Using the existance or
contents of /etc/redhat-release is not recommended because it can easily
be removed, renamed, or changed.

Thomas


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

  Powered by Linux