Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to remove code duplication from Jamfile
From: å×ÇÅÎÉÊ ûÕÂÉÎ (shubin_evgeniy_at_[hidden])
Date: 2010-03-22 08:58:39


I solved this problem, putting this line to Jamfiles of subprojects :

modules.poke $(JAMROOT) : DAEMON_NAME : my_name ;

Mon, 22 Mar 2010 15:12:12 +0300 ÐÉÓØÍÏ ÏÔ Vladimir Prus <ghost_at_[hidden]>:

> On Monday 22 March 2010 10:43:44 å×ÇÅÎÉÊ ûÕÂÉÎ wrote:
>
> > Thanks, it work almost as I want. There is only one problem in transform-script. When variables
> > are substituted the result is :
> > sed "s_at_PREFIX@/home/eshubin/test_at_g" ../../scripts/rc_script.freebsd | sed > /home/eshubin/test/scripts/harvester_master
> > .
> >
> > In the second element of pipe there is an error (It should be sed "s_at_NAME@harvester_master_at_g" > /home/eshubin/test/scripts/harvester_master).
>
> Could you try adding this to Jamroot:
>
> import feature ;
> feature.feature daemon : : free ;
>
> import toolset ;
> toolset.flags $(JAMROOT).transform-script : DAEMON_NAME : <daemon> ;
>
> and modify all the function to do:
>
> make $(INSTALL_PATH)/scripts/$(DAEMON_NAME) : ../../scripts/rc_script.freebsd : @$(JAMROOT).transform-script
> : <daemon>$(DAEMON_NAME) ;
>
> - Volodya
>


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