[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Newbie question - testing for OS. . .
From: |
Dave Korn |
Subject: |
RE: Newbie question - testing for OS. . . |
Date: |
Tue, 19 Dec 2006 22:13:07 -0000 |
On 19 December 2006 22:08, bC wrote:
> I've built a couple simplistic make files to install my program, needed
> data files and libraries.... one aimed at being used on Fedora Core 3, the
> other on Fedora Core 5. Those are currently the two favorites of my target
> audience; and I've found them to vary in what libraries are present by
> default.
>
> I'd like to maintain just the one make file... so, I need a test and
> decision based upon which version of the OS the make utility finds itself
> running under. I would appreciate a kick-start in the right direction.
Perhaps something along the lines of
OS_VERSION=$(shell uname)
would do what you want. Depending on what you want to distinguish between
you may want to add flags to uname, or use pattern matching to extract just
part of the output.
cheers,
DaveK
--
Can't think of a witty .sigline today....
- Newbie question - testing for OS. . ., bC, 2006/12/19
- RE: Newbie question - testing for OS. . .,
Dave Korn <=
- Re: Newbie question - testing for OS. . ., Mike Shal, 2006/12/19
- RE: Newbie question - testing for OS. . ., Dave Korn, 2006/12/19
- Re: Newbie question - testing for OS. . ., Ken Smith, 2006/12/19
- Re: Newbie question - testing for OS. . ., Martin Sebor, 2006/12/19
- Re: Newbie question - testing for OS. . ., bC, 2006/12/20
- RE: Newbie question - testing for OS. . ., Dave Korn, 2006/12/20
- Message not available
- Re: Newbie question - testing for OS. . ., Ken Smith, 2006/12/20