List Info

Thread: How to get absolute paths?




How to get absolute paths?
country flaguser name
United States
2007-04-15 23:43:41
When writing a toolset definition, how can I get the absolute paths of files passed into rules and actions, instead of their gristed versions?
 
-dr
Re: How to get absolute paths?
country flaguser name
United States
2007-04-15 23:51:45
Dave Rahardja wrote:
> When writing a toolset definition, how can I get the
absolute paths of files
> passed into rules and actions, instead of their gristed
versions?

local p = [ on $(target) return $(LOCATE) ] ;


-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software
.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: How to get absolute paths?
country flaguser name
United States
2007-04-16 00:03:34
Rene Rivera wrote:
> Dave Rahardja wrote:
>> When writing a toolset definition, how can I get
the absolute paths of files
>> passed into rules and actions, instead of their
gristed versions?
> 
> local p = [ on $(target) return $(LOCATE) ] ;

PS. That only gets you the, usually relative, ungristed path
to the 
gristed part of the target. You'll have to root it with pwd,
and append 
the target filename.


-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software
.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

[1-3]

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