Getting Lazarus

From Lazarus wiki
Revision as of 14:41, 15 September 2005 by Vincent (talk | contribs) (→‎Via SVN: removed useless warning)
Jump to navigationJump to search


Getting SVN

You may download a SVN Client for Windows in A SVN command line client is available from the official SVN website for many platforms including Linux and Windows.

Using SVN

To get Lazarus for the first time:

Open a terminal/command prompt, change to the directory you wish the Lazarus folder to be created in and type:

 svn co lazarus

To update Lazarus sources:

Open a terminal/command prompt, change to the lazarus directory and type:

 svn update

user:Matthijs: WARNING: This script is still assuming lazarus has its source in a CVS repository In Linux I use a script (it is not very sophisticated, but does the trick) to download the latest CVS-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 CVS I make a backup, just in case the current cvs 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.


#Define some directories

#Remove old backup if it exists
date +"%T %tStart"
if [ -d $LAZBACKUP ]
  date +"%T %tRemoving old backup"
  rm $LAZBACKUP -r
  date +"%T %tNo backup to remove"

date +"%T %tCreating copy of lazarus dir"

#Getting stuff from cvs
date +"%T %tLogin to cvs server"
cvs login > /dev/null
date +"%T %tUpdate lazarus"
cvs -z3 update -dP lazarus > ~/cvs_update.log
date +"%T %tLogout of cvs-server"
cvs logout > /dev/null

#Copying cvs-files to our laz dir.
date +"%T %tcopying files"
cp -Rf $LAZCVSDIR $BASEDIR --reply=yes

#Make and building of lazarus
date +"%T %tmake lazarus" 
make > /dev/null
date +"%T %tmake the packages"
make idepkg > /dev/null
date +"%T %tFinished"

Daily Snapshot method

If you don't want to use svn directly, a daily snapshot of the current cvs is available from the lazarus snapshot site or one of its mirrors.

Downloading releases

Binary releases for various platforms are also available via the Lazarus Sourceforge download area.

Original contributors and changes

This page has been converted from the epikwiki version.