Boost logo

Boost-Build :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-08-01 15:02:13


Andrey Melnikov wrote:
> David Abrahams wrote:
>>John Torjo <john.lists_at_[hidden]> writes:
>>>, or do I need to modify extra pieces of code?
>>
>>You mean, like, rewrite the Windows command shell? ;-)
>
> For what do we need to depend on command shell?
>
> Can we just call CreateProcess to run actions, and use cmd /c only when
> we need to run .bat/.cmd files?

How would one use CreateProcess to run multi-command actions? For example:

actions archive bind RSP
{
$(RM) "$(<[1])"
$(.LD) /lib /NOLOGO /out:"$(<[1])" @"$(RSP)" && $(RM) "$(RSP)"
}

How would one use CreateProcess to run shell commands in actions? For
example:

actions archive bind RSP
{
if exist "$(<[1])" DEL "$(<[1])"
$(.LD) /lib /NOLOGO /out:"$(<[1])" @"$(RSP)" && $(RM) "$(RSP)"
}

FYI; The examples are straight from the msvc.jam file.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - Grafik/jabber.org
 

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