www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/27/19:11:52

Date: Thu, 27 Aug 1998 14:51:03 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Goh Yong Kwang <s6606555 AT mercury DOT np DOT ac DOT sg>
cc: djgpp AT delorie DOT com
Subject: Re: How to locate djgpp.env?
In-Reply-To: <Pine.SOL.3.91.980827121442.26553B-100000@mercury>
Message-ID: <Pine.SUN.3.91.980827145041.6326j-100000@is>
MIME-Version: 1.0

On Thu, 27 Aug 1998, Goh Yong Kwang wrote:

> I'm planning to write a utility that can help people to modify the 
> djgpp.env file.

Why should people modify that file?  It is in general a bad idea,
since DJGPP.ENV pulls a lot of subtle tricks that together make DJGPP
work smoothly.  Changing that file without knowing all those
subtleties might break things.

> How do I detect whether DJGPP is installed in a user's computer 
> *reliably*?

Try to run some program from djdev distribution, like go32-v2.exe, and
see if that succeeds.

> Also, how do I locate the djgpp.env file if the user has not set the DJGPP 
> environment variable to indicate djgpp.env's location?

If the DJGPP environment variable isn't set, then the contents of
DJGPP.ENV are not important, since it is not used by the DJGPP
programs.  So I think you should print an eror message in that case
and exit.

But please reconsider whether a program to modify DJGPP.ENV is at all
a good idea.

- Raw text -


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