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.
--Lorenzo

--
View this message in context: http://boost.2283326.n4.nabble.com/boost-bjam-copy-a-file-tp4321537p4321537.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk