Installation von SVN

Für Installationen unter Windows
Antworten
psycodad
Beiträge: 18
Registriert: Mi 13. Dez 2006, 12:57
OS, Lazarus, FPC: Win OS X (L 0.9.28 FPC 2.4.3)
CPU-Target: 32Bit/64Bit
Wohnort: Embrach ZH / Schweiz
Kontaktdaten:

Installation von SVN

Beitrag von psycodad »

Hallo zusammen,
Ich bin da noch nicht so sattelfest, also habt bitte etwas Geduld mit mir.

Ich versuche, anhand dieser Anleitung lazarus zu installieren:

http://wiki.lazarus.freepascal.org/Inst ... 28Win32.29


Ich hab alles soweit zusammen, nun will ich mit dem in der Anleitung beschriebenen makelaz.bat die IDE kompilieren.

Free Pascal Compiler version 2.4.3 [2011/03/17] for i386
Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Win32 for i386
Compiling fcllaz.pas
Fatal: Can't find unit system used by fcllaz
Fatal: Compilation aborted
make[1]: *** [fcllaz.ppu] Error 1
make[1]: Leaving directory `c:/freepascal/laz/packager/registration'
make: *** [packager/registration] Error 2

Ich probiere das ganze auf einem Win7 64bit System.

Kann mir da jemand weiterhelfen?
Bankraub: eine Initiative von Dilettanten. Wahre Profis gründen eine Bank.... Bertolt Brecht

shokwave
Beiträge: 470
Registriert: Do 15. Nov 2007, 16:58
OS, Lazarus, FPC: Win11/Ubuntu Budgie (L 3.0 FPC 3.2.2)
CPU-Target: i386, x64
Wohnort: Gera

Re: Installation von SVN

Beitrag von shokwave »

Hi,

das klingt ganz nach falschen Pfadeinstellungen in der fpc.cfg (STEP #4). Haben die Schritte #1 bis #3 problemlos funktioniert?
mfg Ingo

schnullerbacke
Beiträge: 1187
Registriert: Mi 13. Dez 2006, 10:58
OS, Lazarus, FPC: Winux (L 1.2.xy FPC 2.6.z)
CPU-Target: AMD A4-6400 APU
Wohnort: Hamburg

Re: Installation von SVN

Beitrag von schnullerbacke »

Hi psychodad (Was für ein Name :shock: ),

ich hab Lazarus erstmal normal installiert und dann per tortoise-svn einen update-Lauf gemacht.
Allerdings gibt es da scheinbar im Moment Probleme weil der FPC-Compiler bei den neuen Releases wohl eine neue Version ist.

Ich würde im Moment die Finger davon lassen, es sei denn irgendwer weiß hier ne Lösung... :wink:
Humor ist der Knopf, der verhindert, daß uns der Kragen platzt.

(Ringelnatz)

Scotty
Beiträge: 768
Registriert: Mo 4. Mai 2009, 13:24
OS, Lazarus, FPC: Arch Linux, Lazarus 1.3 r44426M FPC 2.6.4
CPU-Target: x86_64-linux-qt/gtk2
Kontaktdaten:

Re: Installation von SVN

Beitrag von Scotty »

Al Bundy hat geschrieben:Who's that riding in the sun?
Who's the man with the itchy gun?
Well, who's the man who kills for fun?
Psycho Dad, Psycho Dad, Psycho Dad!

A little touched or so we're told.
Killed his wife 'cause she had a cold.
Might as well, she was gettin' old.
Psy-cho Dad, Psycho Dad, Psycho Dad!

He's quick with a gun, and his job ain't done.
Killed his wife by twenty-one
Shot her 'cause she weighed a ton
Psy-cho Dad, Psycho Dad, Psycho Dad!

Who's the tall, dark stranger there.
The one with the gun and the icy stare.
Holding the scalp of his ex-wife's hair.
Psy-cho Dad, Psycho Dad, Psycho Dad
Psy-cho Dad, Psycho Dad, Psycho Dad
Psy-cho Dad, Psycho Dad, Psycho Dad


Fpc Sourcen installiert?

psycodad
Beiträge: 18
Registriert: Mi 13. Dez 2006, 12:57
OS, Lazarus, FPC: Win OS X (L 0.9.28 FPC 2.4.3)
CPU-Target: 32Bit/64Bit
Wohnort: Embrach ZH / Schweiz
Kontaktdaten:

Re: Installation von SVN

Beitrag von psycodad »

shokwave hat geschrieben:Hi,

das klingt ganz nach falschen Pfadeinstellungen in der fpc.cfg (STEP #4). Haben die Schritte #1 bis #3 problemlos funktioniert?



Huch, schon Antworten. Das ging aber fix : :wink:

Ja, die Schritte #1 bis #3 haben problemlos funktioniert.
Bankraub: eine Initiative von Dilettanten. Wahre Profis gründen eine Bank.... Bertolt Brecht

psycodad
Beiträge: 18
Registriert: Mi 13. Dez 2006, 12:57
OS, Lazarus, FPC: Win OS X (L 0.9.28 FPC 2.4.3)
CPU-Target: 32Bit/64Bit
Wohnort: Embrach ZH / Schweiz
Kontaktdaten:

Re: Installation von SVN

Beitrag von psycodad »

Ghihihi, Der Al Bundy Song kommt gut. Von dort habe ich auch den Nick geklaut. :lol:

Ja, FPC Sourcen installiert (Soweit ich das beurteilen kann).
Bankraub: eine Initiative von Dilettanten. Wahre Profis gründen eine Bank.... Bertolt Brecht

psycodad
Beiträge: 18
Registriert: Mi 13. Dez 2006, 12:57
OS, Lazarus, FPC: Win OS X (L 0.9.28 FPC 2.4.3)
CPU-Target: 32Bit/64Bit
Wohnort: Embrach ZH / Schweiz
Kontaktdaten:

Re: Installation von SVN

Beitrag von psycodad »

Habs gefunden. Waren die Pfad-Einstellungen im fpc.cfg.

Vielen Dank erstmal.


Gibts auch die Möglichkeit, Lazarus in Win64bit zu kompilieren?

Wie geht das, wenn ich Projekte für MAC OSX oder für WinCE kompilieren will? Kann dies alles von derselben IDE aus geschehen?
Bankraub: eine Initiative von Dilettanten. Wahre Profis gründen eine Bank.... Bertolt Brecht

shokwave
Beiträge: 470
Registriert: Do 15. Nov 2007, 16:58
OS, Lazarus, FPC: Win11/Ubuntu Budgie (L 3.0 FPC 3.2.2)
CPU-Target: i386, x64
Wohnort: Gera

Re: Installation von SVN

Beitrag von shokwave »

psycodad hat geschrieben:Gibts auch die Möglichkeit, Lazarus in Win64bit zu kompilieren?

Ja, dazu brauchst du nur alle FPC-libs und den Compiler(?) in 64bit, um dann Lazarus in 64bit zu bauen. Guck dir mal das buildfaq an.

psycodad hat geschrieben:Wie geht das, wenn ich Projekte für MAC OSX oder für WinCE kompilieren will? Kann dies alles von derselben IDE aus geschehen?
Win CE sollte relativ problemlos funktionieren, aber MacOS... könnte schwierig werden. Hab noch nicht mitbekommen das das schon erfolgreich gemacht wurde.
mfg Ingo

gocher
Beiträge: 298
Registriert: Di 23. Nov 2010, 23:41
OS, Lazarus, FPC: Ubuntu/Win, Lazarus trunk, FPC trunk
CPU-Target: 32Bit/64Bit
Wohnort: Geldern
Kontaktdaten:

Re: Installation von SVN

Beitrag von gocher »

Hallo zusammen,

ich habe mir mal die Arbeit gemacht einen Batch-File zu schreiben der alles nötige in einmal verrichtet um ein Win32 Portables Lazarus zu erzeugen
    - SVN-Downloads von Free Pascal und Lazarus und einigen Packages
    - FTP-Downloads von Binutils
    - compilieren von Free Pascal und Lazarus
    - crosscompileren von Free Pascal und Lazarus LCL
    - ...

Und so wirds gemacht:
SilkSVN http://www.sliksvn.com/en/download downloaden und den Pfad im Bachfile Zeile 6 abändern (bei mir auf meinem Portablen Laufwerk).
Datei ins root-Verzeichnis des portablen Laufwerkes legen und starten falls ein Fehler auftritt, kann schon mal vorkommen z.B. bei SVN Verbindungsfehlern, einfach noch einmal starten!
Nach der Installation ist Lazarus Portable fertig!
Zu starten ist Lazarus dann mit: \lazarus\lazarus.exe --primary-config-path="\lazarus\AppData"

Falls die Installation nicht portabel sein soll muß nur die Zeile

Code: Alles auswählen

lazbuild --build-all --primary-config-path=%LAZARUS_CONFIG_DIR% --build-ide= > NUL

in

Code: Alles auswählen

lazbuild --build-all --build-ide= > NUL

abgeändet werden!

Erneutes Ausführend des Batch-Files führt ein Update aus.

Der Übergabeparameter "min" (InstUpdate.bat min) führt eine Installation oder Update nur für Lazarus und Free Pascal als Win32 aus, keine zusätzlichen Packages oder Crosscompiler.

InstUpdate.bat

Code: Alles auswählen

@echo off
echo Install/Update Lazarus
cd \
set THUMBDRIVE=%CD:~0,2%
set silkSvn=%THUMBDRIVE%\SlikSvn
set lazPath=%THUMBDRIVE%\lazarus
set log=%lazPath%\log
set LAZARUS_CONFIG_DIR=%lazPath%\AppData
set lazPackageRegPath=%lazPath%\packager\registration
set fpcPath=%lazPath%\fpc
set FPCBINDIR=%fpcPath%\bin\i386-win32
set PPC_CONFIG_PATH=%fpcPath%\bin\i386-win32
set fpcBuildInstallPath=%fpcPath%\fpcbuild_install
set fpcBuildBinariesPath=%fpcPath%\fpcbuild_binaries
 
set PATH=%FPCBINDIR%;%fpcBuildInstallPath%\binw32;%PATH%
 
if "%2"=="compile" goto noPackages
 
set svnPath=%silkSvn%\bin
if not exist %silkSvn%\NUL (
  md %silkSvn%
  echo be shure you have downloaded SilkSvn from http://www.sliksvn.com/en/download to dir %silkSvn%
  pause
)
set PATH=%svnPath%;%PATH%
 
if exist %lazPath%\NUL (
  cd %lazPath%
  echo Lazarus svn update, please wait ...
  svn update
) else (
  echo Lazarus svn checkout, please wait ...
  svn checkout http://svn.freepascal.org/svn/lazarus/trunk lazarus
)
if %errorlevel% NEQ 0 (
  echo be shure you have downloaded SilkSvn from http://www.sliksvn.com/en/download to dir %silkSvn%
  pause
  goto Cleanup
)
if not exist %LAZARUS_CONFIG_DIR%\NUL md %LAZARUS_CONFIG_DIR%
 
if not exist %log%\NUL md %log%
if not exist %fpcPath%\NUL md %fpcPath%
if exist %fpcPath%\NUL (
  echo Free Pascal svn update, please wait ...
  cd %fpcPath%
  svn update
) else (
  echo Free Pascal svn checkout, please wait ...
  cd %fpcPath%
  svn checkout http://svn.freepascal.org/svn/fpc/trunk
)
if %errorlevel% NEQ 0 goto Cleanup
 
if exist %fpcBuildInstallPath%\NUL (
  echo Free Pascal Build install svn update, please wait ...
  cd %fpcBuildInstallPath%
  svn update
) else (
  echo Free Pascal Build install svn checkout, please wait ...
  cd %fpcPath%
  svn checkout http://svn.freepascal.org/svn/fpcbuild/trunk/install fpcbuild_install
)
if %errorlevel% NEQ 0 echo SVN update/checkout failed!
 
if exist %fpcBuildBinariesPath%\NUL (
  echo Free Pascal Build binaries svn update, please wait ...
  cd %fpcBuildBinariesPath%
  svn update
) else (
  echo Free Pascal Build binaries svn checkout, please wait ...
  cd %fpcPath%
  svn checkout http://svn.freepascal.org/svn/fpcbuild/ ... i386-win32 fpcbuild_binaries
)
if %errorlevel% NEQ 0 echo SVN update/checkout failed!
 
if not exist %FPCBINDIR%\ppc386.exe (
  if not exist %fpcPath%\bin\NUL md %fpcPath%\bin
  md %FPCBINDIR%
  cd %FPCBINDIR%
  echo get ppc386-win32.zip
  goto ppc386
:ppcunzip
  unzip ppc386-win32.zip
  del ppc386-win32.zip
)
 
if "%1"=="min" goto noPackages
 
if exist %fpcPath%\fpcprojects\NUL (
  echo Free Pascal Projects svn update, please wait ...
  cd %fpcPath%\fpcprojects
  svn update
) else (
  echo Free Pascal Projects svn checkout, please wait ...
  cd %fpcPath%
  svn checkout http://svn.freepascal.org/svn/fpcprojects fpcprojects
)
if %errorlevel% NEQ 0 echo SVN update/checkout failed!
 
if exist %fpcPath%\fpcdocs\NUL (
  echo Free Pascal Docs svn update, please wait ...
  cd %fpcPath%\fpcdocs
  svn update
) else (
  echo Free Pascal Docs svn checkout, please wait ...
  cd %fpcPath%
  svn checkout http://svn.freepascal.org/svn/fpcdocs/trunk fpcdocs
)
if %errorlevel% NEQ 0 echo SVN update/checkout failed!
 
if exist %fpcPath%\html\NUL (
  echo Free Pascal html svn update, please wait ...
  cd %fpcPath%\html
  svn update
) else (
  echo Free Pascal html svn checkout, please wait ...
  cd %fpcPath%
  svn checkout http://svn.freepascal.org/svn/html html
)
if %errorlevel% NEQ 0 echo SVN update/checkout failed!
 
if exist %lazPath%\lazarus-ccr\NUL (
  echo Lazarus-CCR svn update, please wait ...
  cd %lazPath%\lazarus-ccr
  svn update
) else (
  echo Lazarus-CCR svn checkout, please wait ...
  cd %lazPath%
  svn checkout http://lazarus-ccr.svn.sourceforge.net/ ... azarus-ccr lazarus-ccr
)
if %errorlevel% NEQ 0 echo SVN update/checkout failed!
 
set packagesPath=%lazPath%\packages
if not exist %packagesPath%\NUL md %packagesPath%
 
if exist %packagesPath%\ExtPascal\NUL (
  echo ExtPascal svn update, please wait ...
  cd %packagesPath%\ExtPascal
  svn update
) else (
  echo ExtPascal svn checkout, please wait ...
  cd %packagesPath%
  svn checkout http://extpascal.googlecode.com/svn/trunk ExtPascal
)
if %errorlevel% NEQ 0 echo SVN update/checkout failed!
 
if exist %packagesPath%\Indy\NUL (
  echo Indy svn update, please wait ...
  cd %packagesPath%\Indy
  svn update
) else (
  echo Indy svn checkout, please wait ...
  cd %packagesPath%
  svn checkout https://svn.atozed.com:444/svn/Indy10/trunk Indy --username Indy-Public-RO
)
if %errorlevel% NEQ 0 echo SVN update/checkout failed!
 
if exist %packagesPath%\Jedi_jcl\NUL (
  echo Jedi JCL svn update, please wait ...
  cd %packagesPath%\Jedi_jcl
  svn update
) else (
  echo Jedi JCL svn checkout, please wait ...
  cd %packagesPath%
  svn checkout http://jcl.svn.sourceforge.net/svnroot/jcl/trunk/jcl Jedi_jcl
)
if %errorlevel% NEQ 0 echo SVN update/checkout failed!
 
if exist %packagesPath%\Jedi_jvcl\NUL (
  echo Jedi JVCL svn update, please wait ...
  cd %packagesPath%\Jedi_jvcl
  svn update
) else (
  echo Jedi JVCL svn checkout, please wait ...
  cd %packagesPath%
  svn checkout http://jvcl.svn.sourceforge.net/svnroot/jvcl/trunk/jvcl Jedi_jvcl
)
if %errorlevel% NEQ 0 echo SVN update/checkout failed!
 
if exist %packagesPath%\lazupdater\NUL (
  echo Lazarus Updater svn update, please wait ...
  cd %packagesPath%\lazupdater
  svn update
) else (
  echo Lazarus Updater svn checkout, please wait ...
  cd %packagesPath%
  svn checkout http://svn.lazarusforum.de/svn/lazupdater/trunk lazupdater
)
if %errorlevel% NEQ 0 echo SVN update/checkout failed!
 
:noPackages
set libPathwin32=%fpcPath%\bin\i386-win32\lib
set libPathwin64=%fpcPath%\bin\x86_64-win64\lib
set PATH=%fpcPath%;%LAZARUS_CONFIG_DIR%;%fpcBuildBinariesPath%;%libPathwin32%;%PATH%
cd %fpcPath%
echo distclean fpc i386-win32, please wait ...
make distclean OS_TARGET=win32 CPU_TARGET=i386 > NUL
 
if "%1"=="min" goto noOtherDistClean
echo distclean fpc x86_64-win64, please wait ...
make distclean OS_TARGET=win64 CPU_TARGET=x86_64 > NUL
echo distclean fpc i386-linux, please wait ...
make distclean OS_TARGET=linux CPU_TARGET=i386 > NUL
echo distclean fpc arm-wince, please wait ...
make distclean OS_TARGET=wince CPU_TARGET=arm > NUL
echo distclean fpc arm-linux, please wait ...
make distclean OS_TARGET=linux CPU_TARGET=arm > NUL
:noOtherDistClean
 
if exist %FPCBINDIR%\fpc.exe (
  set RELEASE_PPC=fpc.exe
) else (
  set RELEASE_PPC=ppc386.exe
)
echo install fpc i386-win32, please wait ...
make clean install OS_TARGET=win32 CPU_TARGET=i386 INSTALL_PREFIX=%fpcPath% FPC=%RELEASE_PPC% > %log%\fpc_i386-win32.log
if exist %FPCBINDIR%\fpc.exe (
  set RELEASE_PPC=fpc.exe
)
 
if not exist %PPC_CONFIG_PATH%\fpc.cfg (
  echo create fpc.cfg
  cd %PPC_CONFIG_PATH%
  fpcmkcfg -d basepath=%PPC_CONFIG_PATH% -o .\fpc.cfg
  cd %fpcPath%
)
 
if "%1"=="min" goto noFpcCross
 
echo crossinstall fpc x86_64-win64, please wait ...
make crossinstall OS_TARGET=win64 CPU_TARGET=x86_64 CROSSBINDIR=%fpcBuildBinariesPath% INSTALL_PREFIX=%fpcPath% FPC=%RELEASE_PPC% > NUL
echo crossinstall fpc i386-linux, please wait ...
make crossinstall OS_TARGET=linux CPU_TARGET=i386 CROSSBINDIR=%fpcBuildBinariesPath% BINUTILSPREFIX=i386-linux- INSTALL_PREFIX=%fpcPath% FPC=%RELEASE_PPC% > NUL
echo crossinstall fpc arm-wince, please wait ...
make crossinstall OS_TARGET=wince CPU_TARGET=arm CROSSBINDIR=%fpcBuildBinariesPath% BINUTILSPREFIX=arm-wince- INSTALL_PREFIX=%fpcPath% FPC=%RELEASE_PPC% > NUL
echo crossinstall fpc arm-linux, please wait ...
make crossinstall OS_TARGET=linux CPU_TARGET=arm CROSSBINDIR=%fpcBuildBinariesPath% BINUTILSPREFIX=arm-linux- OPT=-dFPC_ARMEL INSTALL_PREFIX=%fpcPath% FPC=%RELEASE_PPC% > NUL
 
:noFpcCross
echo cleanup, please wait ...
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S %fpcPath%\examples\*.svn*') DO RMDIR /S /Q "%%G"
 
echo install lazarus win32, please wait ...
cd %lazPath%
if exist lazarus.exe (
  if exist lazarus.bak del lazarus.bak
  ren lazarus.exe lazarus.bak
)
 
echo distclean Lazarus
make distclean OS_TARGET=win32 CPU_TARGET=i386 > %log%\distclean_i386-win32.log
if "%1"=="min" goto noOtherLazDistClean
make distclean OS_TARGET=win64 CPU_TARGET=x86_64 > %log%\distclean_x64-win64.log
make distclean OS_TARGET=linux CPU_TARGET=i386 > %log%\distclean_i386-linux.log
make distclean OS_TARGET=wince CPU_TARGET=arm > %log%\distclean_arm-wine.log
:noOtherLazDistClean

rem make clean PP=%RELEASE_PPC% > NUL

make clean all OPT="-glw2" > %log%\cleanallwin32.log
rem make clean all > NUL
 
if "%1"=="min" goto noLazCross
cd %lazPackageRegPath%
echo cross-compile LazarusPackageIntf x86_64-win64, please wait ...
make OS_TARGET=win64 CPU_TARGET=x86_64 PP=ppcrossx64.exe > %log%\PackageInfcross_x64-win64.log
echo cross-compile LazarusPackageIntf i386-linux, please wait ...
make OS_TARGET=linux CPU_TARGET=i386 PP=ppcross386.exe > %log%\PackageInfcross_i386-linux.log
echo cross-compile LazarusPackageIntf arm-wince, please wait ...
make OS_TARGET=wince CPU_TARGET=arm PP=ppcrossarm.exe > %log%\PackageInfcross_arm-wine.log
echo cross-compile LazarusPackageIntf arm-darwin, please wait ...
make OS_TARGET=darwin CPU_TARGET=arm PP=ppcrossarm.exe > %log%\PackageInfcross_arm-darwin.log
::Fatal: Can't find unit system used by fcllaz
 
cd %lazPath%
echo cross-compile lcl win64 win32, please wait ...
make lcl OPT="-gl -Ur" OS_TARGET=win64 CPU_TARGET=x86_64 LCL_PLATFORM=win32 PP=ppcrossx64.exe > %log%\lclcross_x64-win64.log
echo cross-compile lcl win64 nogui, please wait ...
make lcl OPT="-gl -Ur" OS_TARGET=win64 CPU_TARGET=x86_64 LCL_PLATFORM=nogui PP=ppcrossx64.exe > %log%\lclcross_x64-nogui.log
 
echo cross-compile lcl linux nogui, please wait ...
rem make lcl OPT="-gl -Fl%fpcPath%\lib\i368-linux -Xr/usr/lib -FL/usr/lib/ld-linux.so.2 -XLAc=c,dl,gmodule" OS_TARGET=linux CPU_TARGET=i386 LCL_PLATFORM=nogui PP=ppcross386.exe > NUL
make lcl OPT="-gl -Ur" OS_TARGET=linux CPU_TARGET=i386 LCL_PLATFORM=nogui PP=ppcross386.exe > %log%\lclcross_i386-linux-nogui.log
 
echo cross-compile lcl wince, please wait ...
make lcl OS_TARGET=wince CPU_TARGET=arm LCL_PLATFORM=wince PP=ppcrossarm.exe > %log%\lclcross_arm-wine.log
echo cross-compile lcl arm-darwin, please wait ...
make lcl OS_TARGET=darwin CPU_TARGET=arm LCL_PLATFORM=cocoa PP=ppcrossarm.exe > %log%\lclcross_arm-darwin.log
::Fatal: Can't find unit system used by alllclunits
 
:noLazCross
::  CPU_TARGET=i386 OS_TARGET=win32
echo make lcl / ide win32, please wait ...
make lcl OPT="-gl -Ur" PP=%RELEASE_PPC% > %log%\lcl_win32.log
echo make lcl / ide nogui, please wait ...
make lcl OPT="-gl -Ur" PP=%RELEASE_PPC% LCL_PLATFORM=nogui > %log%\lcl_nogui.log
echo bigide win32, please wait ...
make bigide OPT="-Xs -XX" PP=%RELEASE_PPC% LCL_PLATFORM=win32 > %log%\bigide_win32.log
echo lazbuilder, please wait ...
make lazbuilder OPT="-Xs -XX" PP=%RELEASE_PPC% > %log%\lazbuilder_win32.log
:buildLazIDE
echo build ide, please wait ...
lazbuild --build-all --primary-config-path=%LAZARUS_CONFIG_DIR% --operating-system=win32 --widgetset=win32 --cpu=i386 --build-ide= > %log%\lazbuild_win32.log
if %errorlevel% NEQ 0 (
  echo Error take old lazerus version
  if exist lazarus.bak ren lazarus.bak lazarus.exe
) else (
  ren lazarus.new.exe lazarus.exe
  echo strip and upx lazbuild, please wait ...
  strip lazbuild.exe > NUL
  upx lazbuild.exe > NUL
  echo strip and upx startlazarus, please wait ...
  strip startlazarus.exe > NUL
  upx startlazarus.exe > NUL
  echo strip and upx lazarus, please wait ...
  strip lazarus.exe > NUL
  upx lazarus.exe > NUL
)
 
if "%1"=="min" goto Exit
 
echo make lazarus examples, please wait ...
cd %lazPath%\examples
make > NUL
goto Exit
 
:CleanupHistory
cd %lazPath%
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S %lazPath%\*__history*') DO RMDIR /S /Q "%%G"
goto Exit
:Cleanup
echo.
echo Something went wrong, trying to fix any problems if possible  ...
svn cleanup
if %errorlevel% NEQ 0 (
cd ..
echo.
echo Cleanup Failed ! Please check or delete/move/rename the subdirectory ...
)
cd \
echo.
echo Cleanup complete please run the script again.
echo press any key to make clean all
pause
cd %lazPath%
if exist lazarus.exe (
  if exist lazarus.bak del lazarus.bak
  ren lazarus.exe lazarus.bak
)
make clean all
if %errorlevel% NEQ 0 (
  echo Error take old lazerus version
  ren lazarus.bak lazarus.exe
) else (
  ren lazarus.new.exe lazarus.exe
  echo strip and upx lazarus, please wait ...
  strip lazarus.exe > NUL
  upx lazarus.exe > NUL
)
:Exit
echo ---- END ----
pause
exit /b
 
:ppc386
ftp -i -s:"%~f0"&goto:ppcunzip
open ftp.freepascal.org
anonymous
password
cd pub/fpc/dist/2.4.0/bootstrap
binary
mget ppc386-win32.zip
disconnect
bye
MfG Gocher
akt. Projekt: Webserver(HTTPS HTTP/2) mit integrierten CMS in Free Pascal - www.gocher.me

Antworten