Thursday, February 6, 2020

Portable Lazarus-ide

@echo off
rem
rem Simple script to relocate lazarus to use the current driveletter as
rem path, and put basic portable app support in lazarus.
rem 
rem Assumes lazarus is in drvletter:\lazarus and config in
rem $lazarusdir/config
rem
rem For this to work, everything should be relative wrt $(lazarusdir)
rem inside the IDE. If packages work is currently untested

Set DRV_LETTER=%cd:~0,1%:

set LAZARUSDIR=%DRV_LETTER%\lazarus

set FPCROOTDIR=%LAZARUSDIR%\fpc\2.6.0

set FPCBINDIR=%FPCROOTDIR%\bin\i386-win32

set LAZARUSCONFIG=%LAZARUSDIR%\config

for %%i in (%LAZARUSDIR%\fpc\*) do set ALTFPCROOTDIR=%%i

echo %ALTFPCROOTDIR%

%DRV_LETTER%

cd \

REM The next on one line

%FPCBINDIR%\fpcmkcfg -d basepath=%FPCROOTDIR% > %FPCBINDIR%\fpc.cfg

cd %LAZARUSDIR%

rem startlazarus? untested as yet 
rem should later get --lazarusdir=%LAZARUSDIR% 
rem if mantis 15741 (0.9.30+) is committed
rem

Lazarus.exe --primary-config-path=%LAZARUSCONFIG% --lazarusdir=%LAZARUSDIR%

http://newpascal.org/download.html





The Old Serbian Land (1360. ad):






No comments:

Post a Comment

Beogradsko programiranje=