[NTG-context] Re: Overwritten metapost files

Hans Hagen ntg-context@ntg.nl
Tue, 01 Jun 2004 20:45:35 +0200

At 14:55 29/05/2004, you wrote:

>Le 28 mai 04, =E0 21:27, Henning Hraban Ramm a =E9crit :
>>Am Freitag, 28.05.04, um 10:16 Uhr (Europe/Zurich) schrieb Nikolai=
>>>Probably not as good a reason as I think, but yes, the reason being that
>>>I want all texexec output to go into a separate directory.
>Yes, I'd lik that idea very much too!
>Sometimes, one have many (user) files in the main directory, One can
>creates subdirectories for well indentified files such as "figures"
>for all fil related to figure source (xfig, pstricks, matlab,...)
>But I think all context build files (and file derived from context
>like metopost files should go **by default** into a separate directory .
>(but not the main output file such as "myRaport.pdf" !)
>>Did you try
>>texexec myfile --result=3Doutput/myfile

normally context will use a namespace for temp files (for that you need to=
set \protectbufferstrue in your local cont-sys.tex)

you can run on a separate path with

   texexec.pl --runpath=3De:\tmp\oeps test.tex

(if this does not work, check texexec.pl:

sub RunFiles {
my $currentpath =3D cwd() ;
# test if current path is writable
if (! -w "$currentpath/texexec.tmp") {
     print " current path readonly : $currentpath\n";
     if ($ENV["TEMP"] && -e $ENV["TEMP"]) {
         $RunPath =3D $ENV["TEMP"] ;
     } elsif ($ENV["TMP"] && -e $ENV["TMP"]) {
         $RunPath =3D $ENV["TMP"] ;
# test if we need to change paths
if (($RunPath ne "") && (! -w "$RunPath/texexec.tmp")) {
     print "      changing to path : $RunPath\n";
     $InpPath =3D $currentpath ;
     chdir ($RunPath) ;
# start working
     if ($PdfArrange) {