Mail Archives: djgpp-workers/1999/04/12/11:24:26
>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 -