delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/09/01/09:36:17

Message-Id: <m0zDqap-000TvCC@sloep05.cs.vu.nl>
Date: Tue, 1 Sep 98 15:35:30 MET DST
From: RJ vd Boon <rjvdboon AT cs DOT vu DOT nl>
To: "John M. Aldrich" <fighteer AT cs DOT net>
cc: djgpp-workers AT delorie DOT com
Subject: Re: How to locate djgpp.env?

In your letter dated Mon, 31 Aug 1998 19:51:48 -0400, you wrote:
>Eli Zaretskii wrote:
>> > [1] Can't the preamble be more flexible? I guess putting a little
>> > expansion like bash does, in the code is asking a little too much I
>> > think. I mean something like: +TMPDIR=${%TEMP%:-%DJDIR%/tmp} which
>> > isn't possible (yet;-).
>> 
>> Doesn't the following do it?
>>   +TEMP=%DJDIR%/tmp
>>   TMPDIR=%TEMP%

Oops, Eli got me (RJ)...

>That still nukes people who set TMPDIR explicitly.  I suggest the
>following:
>  +TEMP=%DJDIR%/tmp
>  +TMPDIR=%TEMP%
>This way, people get the results they want no matter which variables
>they set.

And John got us.
Maybe one should extend it to
+TEMP=%DJDIR%/tmp
+TMP=%TEMP%
+TMPDIR=%TMP%

But this still doesn't solve the problem of maximizing the likelihood
of setting TMPDIR to a drive with enough space, for programs (like
tar) needing it.
using
[tar]
TMPDIR=%DJDIR%/tmp
has (major) drawbacks for people running DJGPP from CD or a network,
but has advantages for people who point their TMPDIR to a ramdrive.

Maybe using something like:
[tar]
+TARTMP=%DJDIR%/tmp
TMPDIR=%TARTMP%
and a note in the README to set TARTMP to a local drive (NOT a
ramdrive) if you are using a networked/CDROMed DJGPP (Yes, this is
ugly, sorry.)

jm2c, (just my $0.02)
 Robert
--
rjvdboon AT cs DOT vu DOT nl        | "En dat is niet waar!" sprak ex-Staatsecretaris-
www.cs.vu.nl/~rjvdboon   |    van-onderwijs Netelenbos fel.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019