Re: Making rpm's


Subject: Re: Making rpm's
From: Stephen Hack (shack@uiuc.edu)
Date: Tue Nov 30 1999 - 13:52:44 CST


On Tue, Nov 30, 1999 at 12:41:24PM -0700, Logan Hall wrote:
<cut>
> Ok.. i think i found my problem.. you check for rpm in /usr/bin/rpm but it is
> in /bin/rpm on the linuxppc system. I will change the make file for this,
> keeping yours i.e.
> RPM_LOC = $(shell [ -x /usr/bin/rpm ] && echo 1)
> i will change to:
> RPM_LOC = $(shell [ -x /usr/bin/rpm ] || shell [-x /bin/rpm ] && echo 1)
>
> Should that work? If it does do you want the edited make file?

Actually, I don't think that'll work.

The $(shell ....) gmake command passes all the .... stuff to the shell. the
[ -x <filename> ] is actually a call to test -x filename.

Your logic here a || b && c, is that (a || b) and c or a || (b && c). It
should be the first one. Anyway, it would be better to change the test statement
to [ -x /usr/bin/rpm -o -x /bin/rpm ]

-shack

(which does, or atleast the test call, works)



This archive was generated by hypermail 2b25 : Tue Nov 30 1999 - 13:53:23 CST