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

Setting value of a %define to some $var



Hello, all!

I'm writing a spec and am somehow stuck.

I'd like to set the value of a %define to a value I set in a shell var.
So, I'd like to do:

var="some great text"
%define def $var

However, when I do this, %def ends up being empty.

But, what I'd actually like to do, is to append the value to itself
inside a loop.  Just like:

for i in 1 2 3; do
	var="$var $i"
done

If I translate this directly into defines, I get a recursion error
(Recursion depth(17) greater than max(16)).  I did:

for i in 1 2 3; do
	%define def %def $i
done


Could somebody please try to help me?

Alexander Skwar
-- 
How to quote:	http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:	http://www.iso-top.de      |     Jabber: askwar@charente.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
                       Uptime: 3 days 10 hours 12 minutes





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