List Info

Thread: Re: glob from the location of the Jamfile




Re: glob from the location of the Jamfile
country flaguser name
United States
2007-04-03 07:56:23
Doh! Thank you. 

> -----Original Message-----
> From: boost-build-bounceslists.boost.org 
> [mailto:boost-build-bounceslists.boost.org] On Behalf
Of 
> Vladimir Prus
> Sent: Tuesday, April 03, 2007 1:56 AM
> To: boost-buildlists.boost.org
> Subject: Re: [Boost-build] glob from the location of
the Jamfile
> 
> On Tuesday 03 April 2007 10:17, Dave Rahardja wrote:
> > How come path.glob works from the path of the
Jamfile that 
> is used from the
> > command line, instead of from the path of the
Jamfile it is in?
> 
> Because path.glob works from the current directory,
which is 
> the directory
> where you invoke bjam. That's reasonable, because
path.glob 
> is low-level
> feature.
> 
> You can use 'glob' rule (unqualified), in Jamfile
context, to glob
> relatively to Jamfile. Please see:
> 
> 	http://boost.org/boost-build2/doc/html/bbv2/refe
rence/rules.html
> 
> > import path : glob ;
> 
> Just remove this line....
> 
> > 
> > local SOURCE_DIR = source ;
> > local SOURCES = [ glob SOURCE_DIR : *.c *.cpp ] ;
> 
> and use
> 
> 	[ glob *.c *cpp ] 
> 
> - Volodya
> _______________________________________________
> Unsubscribe & other changes: 
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
> 

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )