cons-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: BuildInTargetDir patch: cd to particular target's dir before runnin


From: dougwarner
Subject: RE: BuildInTargetDir patch: cd to particular target's dir before running cmds
Date: Tue, 8 Jan 2002 10:09:28 -0700

Actually, when I first started using cons, I wanted Conscript_chdir to make
cons cd to the target's directory before running commands for each target.
I would still like to see a global setting that has that effect.  I've had
problems with Sun C++ and templates, which I'm now in the process of making
work with variant builds in multiple directories.

Thanks,
Doug

-----Original Message-----
From: Gary Oberbrunner [mailto:address@hidden
Sent: Tuesday, January 08, 2002 9:59 AM
To: address@hidden
Subject: BuildInTargetDir patch: cd to particular target's dir before
running cmds


I don't know if anyone's interested in something like this, but I seemed 
to need it today, or at least it seemed by far the easiest thing I could 
do, so here it is.  If you like it, feel free to add it to cons.  If 
not, well...

What it is is a new cons command, $env->BuildInTargetDir(<files>).
It makes cons cd to the directory of the target(s) before running the 
build commands for that target.  It's a little like Conscript_chdir, but 
it's per-target instead of global.  I don't think it would break any 
existing stuff.

-- 
. . . . . . . . . . . . . . . . . . . . . . . . .
Gary Oberbrunner                address@hidden
GenArts, Inc.                   Tel: 617-492-2888
8 Clinton Street                Fax: 617-492-2852
Cambridge, MA 02139 USA         http://web.genarts.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]