Sign in Join
Wiki copytemporary

Getting Lazarus/pt: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11## Através do Subversion
22
33### Pegando o Subversion
44
55Você pode baixar um bom cliente Subversion (SVN) para Windows aqui [1](http://tortoisesvn.tigris.org/).
66
77Um cliente de linha de comando do SVN está disponível para várias plataformas incluindo Linux e Windows nesta [página](http://subversion.tigris.org/).
88
99### Usando o Subversion
1010
1111#### Usando a linha de comando
1212
1313Para pegar o Lazarus pela primeira vez:
1414
1515Abra um terminal/prompt de comando, mude para o diretório onde você quer que a pasta do Lazarus seja criada e digite:
1616
1717` svn co `[`http://svn.freepascal.org/svn/lazarus/trunk`](http://svn.freepascal.org/svn/lazarus/trunk)` lazarus`
1818
1919Para atualizar os fontes do Lazarus:
2020
2121Abra um terminal/prompt de comando, mude para o diretório do Lazarus e digite:
2222
2323` svn update`
2424
2525#### Usando o TortoiseSVN para Windows
2626
2727O TortoiseSVN se integra ao Windows Explorer. Depois da instalação, todos os comandos estão disponíveis no Windows Explorer através do menu de contexto (clicar com o botão direito do mouse sobre) da pasta ou arquivo.
2828
2929Para pegar o Lazarus pela primeira vez:
3030
3131- Abra o Windows Explorer
3232- Crie um diretório onde você quaer colocar os arquivos vindos do servidor SVN
3333- Clique com o botão direito do mouse no diretório criado
3434- Selecione *SVN Checkout...* no menu de contexto
3535
36-<figure>
37-<img src="TortoiseSVN_Main_Menu.png" title="TortoiseSVN_Main_Menu.png" />
38-<figcaption>TortoiseSVN_Main_Menu.png</figcaption>
39-</figure>
36+![](/wiki-images/2/27/TortoiseSVN_Main_Menu.png)
4037
4138- No próximo diálogo você entra a URL do servidor de fontes do Lazarus:
4239
4340[`http://svn.freepascal.org/svn/lazarus/trunk`](http://svn.freepascal.org/svn/lazarus/trunk)
4441
4542- Aguarde o TortoiseSVN importar a árvore de arquivos do servidor. Isso leva um certo tempo para ser concluído.
4643
4744Para atualizar os fontes do Lazarus:
4845
4946- Abra o Windows Explorer
5047- Clique com o botão direito do mouse no diretório dos fontes
5148- Selecione *SVN Update...* no menu de contexto
5249
53-<figure>
54-<img src="TortoiseSVN_Main_Menu_Update.png" title="TortoiseSVN_Main_Menu_Update.png" />
55-<figcaption>TortoiseSVN_Main_Menu_Update.png</figcaption>
56-</figure>
50+![](/wiki-images/6/65/TortoiseSVN_Main_Menu_Update.png)
5751
5852*PS: Parece haver um bug de um recurso do TortoiseSVN (1.24) em algum ponto. Após ter terminado com ele e fechado o Windows Explorer, pode ser necessário matar o processo TSVNCache.exe pelo Task Manager (CTRL+ALT+DEL). --Prognatus 18:28, 26 Sep 2005 (CEST)*
5953
6054#### Scripts
6155
6256Lightning: Here is a windows batch script that takes care of checking out and updating **Lazarus** from **SVN** to a subdirectory and even basic error fixing, because i have no way of knowing where Lazarus is installed it cannot compile or copy the files to your working Lazarus instalation. Please save the script as **getlaz.bat** or some other name, however there is no warranty of any kind, use at your own risk, put it in a test directory first and make sure there is no subdirectory already called **lazarus**.
6357
6458`@REM Script for checkout and update Lazarus from SVN`\
6559`@echo.`\
66-\
60+
6761`@REM Check if lazarus directory exists to update or checkout first`\
6862`@if not exist lazarus goto CheckoutLaz`\
6963`@echo Updating Lazarus, please wait ...`\
7064`@cd lazarus`\
7165`svn update`\
7266`@if not %errorlevel% == 0 goto CleanupLaz`\
7367`@cd..`\
7468`@goto Exit`\
75-\
69+
7670`:CheckoutLaz`\
7771`@echo Checking out Lazarus for the first time, this might take a while ...`\
7872`svn checkout `[`http://svn.freepascal.org/svn/lazarus/trunk`](http://svn.freepascal.org/svn/lazarus/trunk)` lazarus`\
7973`@goto Exit`\
80-\
74+
8175`:CleanupLaz`\
8276`@echo.`\
8377`@echo Something went wrong, trying to fix any problems if possible  ...`\
8478`svn cleanup`\
8579`@if not %errorlevel% == 0 goto CleanupFailedLaz`\
8680`@cd..`\
8781`@echo.`\
8882`@echo Cleanup complete please run the script again.`\
8983`goto Exit`\
9084`:CleanupFailedLaz`\
9185`@cd..`\
9286`@echo.`\
9387`@echo Cleanup Failed ! Please check or delete/move/rename the lazarus subdirectory ...`\
94-\
88+
9589`:Exit`
9690
9791Matthijs: In Linux I use a script (it is not very sophisticated, but does the trick) to download the latest SVN-version for Lazarus. Before I copy it here I'll explain my system. In my home-directory I have a special cvsroot-directory. In this directory I have a script for downloading Lazarus and other interesting projects. Lazarus is installed in /usr/share/lazarus. Before building a new version from SVN I make a backup, just in case the current svn is unstable. This is done by moving the /usr/share/lazarus directory to /usr/share/lazarus.bu To adapt the script to your system you only need to alter the constants defined at the start of the script. But without further ado, here is the script. But (big but) it is given without any guarantee. :) If things break you are on your own.
9892
9993`#!/bin/bash`\
100-\
94+
10195`# before you can use this script you have to checkout all files`\
10296`# so first do a`\
10397`# svn checkout `[`http://svn.freepascal.org/svn/lazarus/trunk`](http://svn.freepascal.org/svn/lazarus/trunk)` lazarus`\
104-\
98+
10599`#Define some directories`\
106100`BASEDIR=/usr/share/`\
107101`LAZCVSDIR=~/cvsroot/lazarus/`\
108102`LAZDIR=/usr/share/lazarus/`\
109103`LAZBACKUP=/usr/share/lazarus.bu`\
110-\
104+
111105`#Remove old backup if it exists`\
112106`date +"%T %tStart"`\
113107`if [ -d $LAZBACKUP ]`\
114108`then `\
115109`  date +"%T %tRemoving old backup"`\
116110`  rm $LAZBACKUP -fr`\
117111`else`\
118112`  date +"%T %tNo backup to remove"`\
119113`fi`\
120-\
114+
121115`date +"%T %tCreating copy of lazarus dir"`\
122116`cp -R $LAZDIR $LAZBACKUP`\
123-\
117+
124118`#Getting stuff from svn`\
125119`date +"%T %tUpdate lazarus"`\
126120`svn update lazarus > ~/cvs_update.log`\
127-\
121+
128122`#Copying cvs-files to our laz dir.`\
129123`date +"%T %tcopying files"`\
130124`cp -Rf $LAZCVSDIR $BASEDIR --reply=yes`\
131-\
125+
132126`#Make and building of lazarus`\
133127`date +"%T %tmake lazarus" `\
134128`cd $LAZDIR`\
135129`make > /dev/null`\
136130`date +"%T %tmake the packages"`\
137131`make idepkg > /dev/null`\
138132`date +"%T %tFinished"`
139133
140134## Método Cópia Instantânea
141135
142136Se você não quiser utilizar o svn diretamente, uma cópia instantânea do svn corrente está disponível em [lazarus snapshot site](http://www.de.freepascal.org/lazarus/) ou um dos seus espelhos.
143137
144138## Baixando releases
145139
146140Releases binários para várias plataformas estão disponíveis via [Lazarus Sourceforge, área de download](http://sourceforge.net/project/showfiles.php?group_id=89339).
147141
148142## Colaboradores originais e Mudanças
149143
150144Essa página foi convertida da versão [epikwiki](http://lazarus-ccr.sourceforge.net/index.php?wiki=GettingLazarus).
151145
152146---
153147*From the Free Pascal wiki, page "Getting Lazarus/pt", as it stood on 2007-01-10 after a change by Swen, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history