From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-04-26 04:07:26
On Saturday 15 April 2006 01:53, Graly, Marcus (US SSA) wrote:
> I'm trying to write Jamfiles that perform basic system operations,
> specifically copy and delete. Is this possible to do in Bjam, and if so,
> what is the syntax?
in order to copy a file if target file does not exist, you'd need the 'make'
make dst : src : copy ;
cp $(>) $(<)
to remove a specific file (unconditionally), write:
notfile remove_them : remove : file ;
both approaches are not very portable (they use specific tool names), but
that's all we have at the moment. Can you tell why you're looking for such
actions? Maybe, the 'install' rule together with the --clean, option will be
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build V2: http://boost.org/boost-build2
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