Re: trying to "echo" vars from the spec file

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

 



On Tue, Mar 21, 2006 at 02:27:22PM -0800, bruce wrote:

> I'm playing around with a Sepc file, and I'm trying to display/echo some
> vars as the script is being run. However, I'm getting an "unkown tag" error
> msg, regardless of what I use.

Concrete example (with context)?

> I've tried to "echo 'foo'", %echo "foo", %(echo "foo"), etc... with no luck.

Some of these are wrong, some should should in *some* parts of the
spec file.

> I'm trying to examine various vars in different areas of the script.. Is
> there a way to do this? Can I do this anywhere in the script...

Not anywhere.  %prep/%build/%install/%clean sections are (shell)
scripts that can execute things, you can also do something like

%define bar %(echo foo)

which sets %bar to "foo" (useless echo, of course, in this case).

> I'm really trying to change the directory where the "prep" appears to be
> trying to find my .z.bz2 file...

Sounds like you should not want this: sources should be in SOURCES.

-- 
--    Jos Vos <jos@xxxxxx>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux