Boost logo

Boost-Build :

Subject: Re: [Boost-build] Changing directory in an action
From: Matthew Chambers (matt.chambers42_at_[hidden])
Date: 2011-05-19 16:25:01

On 5/19/2011 3:07 PM, Rene Rivera wrote:
> On 5/19/2011 2:49 PM, Matthew Chambers wrote:
>> Is there an easy way to do this? I tried using pushd because this is
>> common on Windows and *nix, but not common enough apparently. The
>> command I'm running (from a make target) writes its output to the CWD.
> I think you're going to have to give a bit more detail as to what you actually are attempting. As
> otherwise my only answer is to just use "cd".. Since all the actions run as sub-processes there's no
> chance of actually changing the working dir of the bjam process. But you really should avoid doing
> this, and instead try to find a way to get a correct relative path.

Ah, I didn't realize cd was safe to use. I don't want to modify the executable I'm running, and like
I said it writes to the CWD, so in order to get it to write to the build directory I have to change
it. Makes sense?


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