Boost logo

Boost :

Subject: [boost] [bjam] copy a file
From: lcaminiti (lorcaminiti_at_[hidden])
Date: 2012-01-23 13:26:50

Hello all,

I'd have a Jamfile that has a "doc" rule to build documentation `bjam doc`.
I'd like to program another rule "config_doc" inside the Jamfile that does
the following:

bjam config_doc:
1) Copy the file /etc/config.txt to ./
2) Copy the file ./src/config.txt to /etc/
3) Run the doc rule
4) Copy the file ./config.txt into /etc/
Where ./ is the current directory from where I'm running bjam. Ideally, I'd
like 4) to be executed even if 3) fails.

Is there a way to do this?

Thanks a lot.

View this message in context:
Sent from the Boost - Dev mailing list archive at

Boost list run by bdawes at, gregod at, cpdaniel at, john at