Boost logo

Boost-Build :

From: Daniel Schlyder (daniel_at_[hidden])
Date: 2004-08-22 12:05:42

David Abrahams:
> Daniel Schlyder <daniel_at_[hidden]> writes:

>> Is there an equivalent to make's shell function in Boost.Build v1? Ie. a way
>> to do something like
>> greeting = [ shell echo Hello, world! ] ;

> 'fraid not. The fundamental capability is missing from bjam. It's
> not simple to implement portably.

Ok. Was easy to work-around by wrapping bjam in a Perl script, though:

<script name="">
#!/usr/bin/perl -w
$ENV{"GREETING"} = `echo Hello, world!`;
system("bjam", @ARGV);

I'm guessing it would be equally easy using Python, so maybe a shell function
could be added if/when BB is rewritten on top of Scons/Python.

Daniel Schlyder

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at