Recent

Author Topic: Build a fresh FPC+LAZ every day!  (Read 1879 times)

stocki

  • Full Member
  • ***
  • Posts: 144
Build a fresh FPC+LAZ every day!
« on: October 09, 2016, 04:21:32 pm »
@echo on

:: Build a fresh FPC+LAZ from SVN everyday
::    Based on http://www.getlazarus.org/

::prerequisites
:: 1. Internet connection
:: 2. Installed SVN (e.g. Tortoise SVN) from http://tortoisesvn.net/
:: 3. Installed bootstrap compiler FPC 3.0.0 at %BASE%\bootstrap from e.g. ftp://wiki.freepascal.org/pub/fpc/dist/3.0.0/i386-win32/fpc-3.0.0.i386-win32.exe


set BASE=c:\FpDev
set BOOTSTRAP=%BASE%\bootstrap\bin\i386-win32
set NEWCOMPILER=%BASE%\fpc\bin\i386-win32

::---SVN---

cd %BASE%
svn co http://svn.freepascal.org/svn/fpc/trunk fpc
if errorlevel 1 goto failed
svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus
if errorlevel 1 goto failed

pause

::---FPC---

cd %BASE%
cd fpc
::%BOOTSTRAP%\make clean
%BOOTSTRAP%\make all
if errorlevel 1 goto failed

::---Make install---
%BOOTSTRAP%\make install INSTALL_PREFIX=%BASE%\fpc
if errorlevel 1 goto failed

::---FPC Win64---
%BOOTSTRAP%\make crossinstall CPU_TARGET=x86_64 OS_TARGET=win64 INSTALL_PREFIX=%BASE%\fpc
if errorlevel 1 goto failed

::---FPC Lin32---
::%BOOTSTRAP%\make crossinstall CPU_TARGET=i386   OS_TARGET=linux INSTALL_PREFIX=%BASE%\fpc
::if errorlevel 1 goto failed

::---Make cfg---
cd %NEWCOMPILER%
fpcmkcfg -d basepath=%BASE%\fpc -o .\fpc.cfg
if errorlevel 1 goto failed

cd %BASE%
set PATH=%NEWCOMPILER%;%PATH%
::fpc -iV

::---Lazarus---

cd %BASE%
cd lazarus
::%BOOTSTRAP%\make clean
%BOOTSTRAP%\make all
::%BOOTSTRAP%\make bigide OPT="-dWIN9XPLATFORM -gl -gw"
if errorlevel 1 goto failed

call %BASE%\lazarus\startlazarus.exe

::---end---

goto exit

:failed
color 0C
echo ERROR!!!

:exit

pause


lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: Build a fresh FPC+LAZ every day!
« Reply #1 on: October 09, 2016, 05:31:09 pm »
And what if fails the crosscompiler but Lazarus still updates why go to fail always?

PD: I ask you to understand from complete ignorance of how these commands works.
« Last Edit: October 09, 2016, 05:34:27 pm by lainz »

 

TinyPortal © 2005-2018