[Lazarus] Build Lazarus + MINGW32
waldo kitty
wkitty42 at windstream.net
Fri Jun 1 20:53:48 CEST 2012
On 6/1/2012 13:41, Reinier Olislagers wrote:
> Though, to be honest, fiddling with something like (IIRC) setlocal and
> endlocal and messing with the PATH (SET PATH=...) in a batch file is
> certainly doable...
it sure is ;)
====== snip ======
:setvars
if "%myFPCver%" == "" set myFPCver=2.6.0
if "%myFPCpath%" == "" set myFPCpath=c:\freepascal\fpc\%myFPCver%
if "%myLAZpath%" == "" set myLAZpath=c:\freepascal\laz
if "%myFPCbinutils%" == "" set myFPCbinutils=c:\freepascal\binutils
if "%myFPCpathset%" == "TRUE" goto pathok
set PATH=%myFPCbinutils%\i386-win32;%myFPCpath%\bin\i386-win32;%PATH%
set myFPCpathset=TRUE
:pathok
====== snip ======
the above prepends to the existing path and does it only once in the current
session so the script can be executed more than once without prepending and
prepending and prepending over and over to the path :)
More information about the Lazarus
mailing list