www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/04/12/11:24:26

Message-ID: <002101be84f8$a8869260$b1003bd4@default>
From: "Laurynas Biveinis" <lauras AT softhome DOT net>
To: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Cc: "DJGPP Workers" <djgpp-workers AT delorie DOT com>
Subject: Re: LBInstDJ
Date: Mon, 12 Apr 1999 17:23:11 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3612.1700
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700
Reply-To: djgpp-workers AT delorie DOT com

>1) Detect all the lines where PATH is set (PATH=, PATH, SET PATH, etc,
etc).
>2) Discard the commented lines (rem, :, any other?).

I already do so.

>3) Detect which of these lines contains %PATH%.

I will do this too, but for other purpose - I will insert %PATH% in any
path setting lines where it is missing. This will help to ensure that djdir
on the 1st path line will not be skipped and will repair broken autoexec.bat
where first paths are not included by laters.

>4) Add the djgpp stuff (SET PATH=djdir;%PATH%?) after *all* the lines that
>sets the path in a non-additive way.

I do this in 1st path setting line and later inserting %path% where it is
missing
will ensure that djdir will not be skipped.

>5) If no such a line just add one.

Sure.



- Raw text -


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