[openbeos-build-team] Re: AddResources rule

  • From: "Ryan Leavengood" <leavengood@xxxxxxxxxxxx>
  • To: openbeos-build-team@xxxxxxxxxxxxx
  • Date: Thu, 11 Jul 2002 20:28:20 EDT

>If you tell me how to check in an actions section whether a Jam 
>variable is empty or not, then I can do that.
>The apparently trivial problem is trickier on a closer look (unless I 
>miss something very basic). The Jam variable may be empty, contain one 
>or an arbitrary number of elements. A simple test like `if [ -z $(var) 
>]; then...' doesn't work very well with lists of more than one 
element. 
>`"$(var)"' doesn't help, since Jam expands a list always to a list -- 
>in this case to `"element1" "element2" ...'.
>Yep, with a `for' loop one can work around, but I personally find that 
>quite ugly.

I have used quite a different method for creating AddResources that I 
think might work a little better in this regard.  Once I publish my 
"Jamfile-engine" and get some feedback I'll see about doing similar 
things in our Jamrules...

Ryan Leavengood
OpenBeOS Build Team Lead

Other related posts: