|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2002-04-04 09:14:09
David Abrahams wrote:
> > > > Nay, this is not what the method does. It actually does
> > > > rm -rf . && cp -r dir .
> > > > as you already spelled it, not
> > > > mkdir /tmp/another_tmp_dir && cp dir /tmp/another_tmp_dir &&
>
> cd
>
> > > /tmp/another_tmp_dir
> > >
> > > Oh.
> > >
> > > rewrite_cwd - replaces the contents of the current working
> > > directory with the contents of a specified directory.
> >
> > Not yet right -- it rewrites the content of the scracth directory
>
> created
>
> > when the tester object was created, not the current working dir.
>
> Now I'm really confused. You used '.' above, which always refers to the
> CWD. You also said that the creation of the tester sets the CWD to the
> scratch directory.
Use of "." above was wrong, true. I'll try again.
1. Tester's constructor creates a scratch directory and chdir there.
2. set_tree replaces the content of the scratch directory with the content of
some other dir, even if user has called chdir manually before, and
CWD != scratch dir.
So, what is the best name for this semantics?
- Volodya
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