Test for redhatness (when building RPM's)
Mostafa Z. Afgani
mostafa.afgani at world.iu-bremen.de
Fri Aug 19 18:03:22 UTC 2005
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
More information about the fedora-list
mailing list