Sign in Join
Wiki copytemporary

Getting Lazarus/pt: what changed

Revision 2 to 3. 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
17-` svn co `[`http://svn.freepascal.org/svn/lazarus/trunk`](http://svn.freepascal.org/svn/lazarus/trunk)` lazarus`
17+```text
18+ svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus
19+```
1820
1921Para atualizar os fontes do Lazarus:
2022
2123Abra um terminal/prompt de comando, mude para o diretório do Lazarus e digite:
2224
23-` svn update`
25+```text
26+ svn update
27+```
2428
2529#### Usando o TortoiseSVN para Windows
2630
2731O 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.
2832
2933Para pegar o Lazarus pela primeira vez:
3034
3135- Abra o Windows Explorer
3236- Crie um diretório onde você quaer colocar os arquivos vindos do servidor SVN
3337- Clique com o botão direito do mouse no diretório criado
3438- Selecione *SVN Checkout...* no menu de contexto
3539
3640![](/wiki-images/2/27/TortoiseSVN_Main_Menu.png)
3741
3842- No próximo diálogo você entra a URL do servidor de fontes do Lazarus:
3943
40-[`http://svn.freepascal.org/svn/lazarus/trunk`](http://svn.freepascal.org/svn/lazarus/trunk)
44+```text
45+http://svn.freepascal.org/svn/lazarus/trunk
46+```
4147
4248- Aguarde o TortoiseSVN importar a árvore de arquivos do servidor. Isso leva um certo tempo para ser concluído.
4349
4450Para atualizar os fontes do Lazarus:
4551
4652- Abra o Windows Explorer
4753- Clique com o botão direito do mouse no diretório dos fontes
4854- Selecione *SVN Update...* no menu de contexto
4955
5056![](/wiki-images/6/65/TortoiseSVN_Main_Menu_Update.png)
5157
5258*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)*
5359
5460#### Scripts
5561
5662Lightning: 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**.
5763
58-`@REM Script for checkout and update Lazarus from SVN`\
59-`@echo.`\
64+```text
65+@REM Script for checkout and update Lazarus from SVN
66+@echo.
6067
61-`@REM Check if lazarus directory exists to update or checkout first`\
62-`@if not exist lazarus goto CheckoutLaz`\
63-`@echo Updating Lazarus, please wait ...`\
64-`@cd lazarus`\
65-`svn update`\
66-`@if not %errorlevel% == 0 goto CleanupLaz`\
67-`@cd..`\
68-`@goto Exit`\
68+@REM Check if lazarus directory exists to update or checkout first
69+@if not exist lazarus goto CheckoutLaz
70+@echo Updating Lazarus, please wait ...
71+@cd lazarus
72+svn update
73+@if not %errorlevel% == 0 goto CleanupLaz
74+@cd..
75+@goto Exit
6976
70-`:CheckoutLaz`\
71-`@echo Checking out Lazarus for the first time, this might take a while ...`\
72-`svn checkout `[`http://svn.freepascal.org/svn/lazarus/trunk`](http://svn.freepascal.org/svn/lazarus/trunk)` lazarus`\
73-`@goto Exit`\
77+:CheckoutLaz
78+@echo Checking out Lazarus for the first time, this might take a while ...
79+svn checkout http://svn.freepascal.org/svn/lazarus/trunk lazarus
80+@goto Exit
7481
75-`:CleanupLaz`\
76-`@echo.`\
77-`@echo Something went wrong, trying to fix any problems if possible  ...`\
78-`svn cleanup`\
79-`@if not %errorlevel% == 0 goto CleanupFailedLaz`\
80-`@cd..`\
81-`@echo.`\
82-`@echo Cleanup complete please run the script again.`\
83-`goto Exit`\
84-`:CleanupFailedLaz`\
85-`@cd..`\
86-`@echo.`\
87-`@echo Cleanup Failed ! Please check or delete/move/rename the lazarus subdirectory ...`\
82+:CleanupLaz
83+@echo.
84+@echo Something went wrong, trying to fix any problems if possible ...
85+svn cleanup
86+@if not %errorlevel% == 0 goto CleanupFailedLaz
87+@cd..
88+@echo.
89+@echo Cleanup complete please run the script again.
90+goto Exit
91+:CleanupFailedLaz
92+@cd..
93+@echo.
94+@echo Cleanup Failed ! Please check or delete/move/rename the lazarus subdirectory ...
8895
89-`:Exit`
96+:Exit
97+```
9098
9199Matthijs: 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.
92100
93-`#!/bin/bash`\
101+```text
102+#!/bin/bash
94103
95-`# before you can use this script you have to checkout all files`\
96-`# so first do a`\
97-`# svn checkout `[`http://svn.freepascal.org/svn/lazarus/trunk`](http://svn.freepascal.org/svn/lazarus/trunk)` lazarus`\
104+# before you can use this script you have to checkout all files
105+# so first do a
106+# svn checkout http://svn.freepascal.org/svn/lazarus/trunk lazarus
98107
99-`#Define some directories`\
100-`BASEDIR=/usr/share/`\
101-`LAZCVSDIR=~/cvsroot/lazarus/`\
102-`LAZDIR=/usr/share/lazarus/`\
103-`LAZBACKUP=/usr/share/lazarus.bu`\
108+#Define some directories
109+BASEDIR=/usr/share/
110+LAZCVSDIR=~/cvsroot/lazarus/
111+LAZDIR=/usr/share/lazarus/
112+LAZBACKUP=/usr/share/lazarus.bu
104113
105-`#Remove old backup if it exists`\
106-`date +"%T %tStart"`\
107-`if [ -d $LAZBACKUP ]`\
108-`then `\
109-`  date +"%T %tRemoving old backup"`\
110-`  rm $LAZBACKUP -fr`\
111-`else`\
112-`  date +"%T %tNo backup to remove"`\
113-`fi`\
114+#Remove old backup if it exists
115+date +"%T %tStart"
116+if [ -d $LAZBACKUP ]
117+then
118+ date +"%T %tRemoving old backup"
119+ rm $LAZBACKUP -fr
120+else
121+ date +"%T %tNo backup to remove"
122+fi
114123
115-`date +"%T %tCreating copy of lazarus dir"`\
116-`cp -R $LAZDIR $LAZBACKUP`\
124+date +"%T %tCreating copy of lazarus dir"
125+cp -R $LAZDIR $LAZBACKUP
117126
118-`#Getting stuff from svn`\
119-`date +"%T %tUpdate lazarus"`\
120-`svn update lazarus > ~/cvs_update.log`\
127+#Getting stuff from svn
128+date +"%T %tUpdate lazarus"
129+svn update lazarus > ~/cvs_update.log
121130
122-`#Copying cvs-files to our laz dir.`\
123-`date +"%T %tcopying files"`\
124-`cp -Rf $LAZCVSDIR $BASEDIR --reply=yes`\
131+#Copying cvs-files to our laz dir.
132+date +"%T %tcopying files"
133+cp -Rf $LAZCVSDIR $BASEDIR --reply=yes
125134
126-`#Make and building of lazarus`\
127-`date +"%T %tmake lazarus" `\
128-`cd $LAZDIR`\
129-`make > /dev/null`\
130-`date +"%T %tmake the packages"`\
131-`make idepkg > /dev/null`\
132-`date +"%T %tFinished"`
135+#Make and building of lazarus
136+date +"%T %tmake lazarus"
137+cd $LAZDIR
138+make > /dev/null
139+date +"%T %tmake the packages"
140+make idepkg > /dev/null
141+date +"%T %tFinished"
142+```
133143
134144## Método Cópia Instantânea
135145
136146Se 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.
137147
138148## Baixando releases
139149
140150Releases 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).
141151
142152## Colaboradores originais e Mudanças
143153
144154Essa página foi convertida da versão [epikwiki](http://lazarus-ccr.sourceforge.net/index.php?wiki=GettingLazarus).
145155
146156---
147157*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