Re: variable not defined on my own define-rule

Jeremy Cowgar <[email protected]> Mon, 14 Sep 2009 13:30:46 +0000 (UTC)
Newsgroups gmane.comp.sysutils.bakefile.devel
Message-ID <[email protected]>
Vaclav Slavik <vslavik@...> writes:

> 
> Your best bet probably is to define __source as empty first, then put
> the command into a variable set with <set var="my_cmd"
> eval="0">...$(__source)...</set> and then use
> <command>$(my_cmd)</command>. That should do what you want.
> 

Ah! Ok, that did the trick. Defining it empty and also putting eval="0". 
Previously, I did try adding it as empty but I didn't have eval="0". The 
__source was always empty then, regardless of the fact that the target having 
<source>...</source>.

Thanks!

Jeremy



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july