Subject: Re: [Boost-build] How to iterate over list of strings
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2015-06-11 22:11:00
On Thu, Jun 11, 2015 at 9:03 PM, Gennadiy Rozental <rogeeff_at_[hidden]>
> I've got the question about bjam.
> I want to glob list of files in the directory and invoke rule for each
> file I
> found. How do I do this?
If you want simple iteration you do:
for local f in [ glob ... ]
my-rule $(f) ;
If you want to collect the results of each call you can use the sequence
import sequence ;
local result = [ sequence.transform my-rule : [ glob ... ] ] ;
-- -- Rene Rivera -- Grafik - Don't Assume Anything -- Robot Dreams - http://robot-dreams.net -- rrivera/acm.org (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk