Boost logo

Boost-Build :

From: Patrick Tan (pxt_at_[hidden])
Date: 2005-12-19 01:35:27


Rene Rivera wrote:

>Patrick Tan wrote:
>
>
>>I want to perform different pre build actions depending on whether it is
>>"bjam clean", "bjam -a" or "bjam" inside my Jamfile.
>>
>>For example I would like to do something like this in my Jamfile:
>>
>>if (bjam clean)
>>
>>
>
>if clean in $(ARGV)
>
>
>
>>{
>> SHELL "rm myVersioningFile.h" ;
>>}
>>else if (bjam -a)
>>
>>
>
>if -a in $(ARGV)
>
>
>
>>{
>> SHELL "rm myVersioningFile.h" ;
>> SHELL "prebuild.sh > myVersioningFile.h" ;
>>}
>>
>>Would anyone know how I can achieve the above pseudo code in a Jamfile.
>>
>>
>
>If you are "inside" the BBv2 umbrella then you'll need to get the ARGV
>from the system module.
>
>
>
>
I'm using BBv2 can you tell me how I can get the ARGV variable from the
system module?


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