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="mybjam.pl">
#!/usr/bin/perl -w
$ENV{"GREETING"} = `echo Hello, world!`;
chomp($ENV{"GREETING"});
system("bjam", @ARGV);
</script>

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
http://bitblaze.com/
 

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