Lazarus Manager

From Free Pascal wiki
Revision as of 17:48, 4 October 2010 by Kjow (talk | contribs) (New page: == Introduction == These scripts are made for me, by me. So many of you might not like my needs. They are made to have latest news of lazarus/fpc development, because official releases a...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Introduction

These scripts are made for me, by me. So many of you might not like my needs.

They are made to have latest news of lazarus/fpc development, because official releases are, generally, old and install everyday the daily snapshot is a little bit laborious.

You can edit and improve these scripts, but PLEASE put your modifies in this page, so everyone can get benefits.

Finally, these scripts are for who doesn't want waste time on installations/configurations, but wants to develop on quick time ("end-users", not "developers of the development system").


Windows

Download THIS file and unzip it to any folder you want (e.g. c:\Downloads\LazarusManager\).

Double click on LazarusManager.bat and follow ALL instructions you read in the console window.

How it appears:

********************************************************
*                                                      *
*                  Automated Install                   *
*             for Lazarus/FPC/GLScene svn              *
*                                       Script by Kjow *
*                                                      *
* This script is designed for Windows 7                *
* (It should work on 2000/XP/Vista also)               *
********************************************************

Lazarus seems to be not installed, what do you want to do?
  1) Install [Press I for this option]
  2) Exit    [Press E for this option] -> Default. Exit in 10sec.
Choice [I/E]:

After installation process, you can update svn and compile/build everything, simply double clicking on "Lazarus Manager.bat". I suggest you to add LazarusManager.bat at start of windows, so you will have every morning the latest updates. How it appears after first installation process:

********************************************************
*                                                      *
*                  Automated Install                   *
*             for Lazarus/FPC/GLScene svn              *
*                                       Script by Kjow *
*                                                      *
* This script is designed for Windows 7                *
* (It should work on 2000/XP/Vista also)               *
********************************************************

Lazarus already configured, what do you want to do?
  1) Delete all and restart. [Press D for this option]
  2) Update Lazarus & FPC.   [Press U for this option] -> Default in 10sec.
  3) Exit                    [Press E for this option]
Choice [D/U/E]:

NOTE 1: If you want change destination folder, edit line number 14:

set PATHDEST=C:\Develop

with

set PATHDEST=C:\WhatYouWant

You CAN'T use path with spaces. Please don't forget it!

NOTE 2: When requested remember to install fpc on c:\develop\fpc\2.4.0 (or if you edited PATHDEST -> C:\WhatYouWant\fpc\2.4.0)

NOTE 3: if you want latest FPC development trunk (e.g. 2.5.x) instead latest 2.4.0, modify the lines 134 & 135, from:

svn co http://svn.freepascal.org/svn/fpc/tags/release_2_4_0 fpc
REM svn co http://svn.freepascal.org/svn/fpc/trunk fpc

to:

REM svn co http://svn.freepascal.org/svn/fpc/tags/release_2_4_0 fpc
svn co http://svn.freepascal.org/svn/fpc/trunk fpc

so, simply swap the REM command.

NOTE 4: The script downloads/updates GLScene also. So if you don't need it remove or put REM on lines: 140, 141, 221, 222, 223 and 232

Alike this, you can add other svn repositories.

NOTE 5: The zip file include WGET for Windows.


Linux

These scripts download svn sources (Lazarus/FPC/GLScene) and zip needed, build and configure your Ubuntu (x86) box. After installation you will able to cross-compile for arm-linux also.

You can download those files from HERE (see attachment of first post)

(the version of files in this forum thread are a bit older respect the versions on my hard disk, but there is some time that I don't use the Linux version, so in the next weeks I will update everything). Both files are designed for Ubuntu X86 >= 8.10 (maybe earlier also, I don't know).

You can find full page HERE

You had just to download it somewhere (like Desktop) and simply launch it from terminal with sh, e.g.:

test@vm-desktop:~/Desktop$ sh lazarus_first_time
********************************************************
*                                                      *
*                Automated Installation                *
*    for install Lazarus/FPC with arm cross compile    *
*                                       Script by Kjow *
*                                                      *
* This script is designed for Ubuntu X86 (32 Bit)      *
*                                                      *
********************************************************

Please, enter your account user:
test
...

For daily/instantly svn updates there is an other script (lazarus_update) that updates and rebuilds:

test@vm-desktop:~/Desktop$ sh lazarus_update
********************************************************
*                                                      *
*                   Automated Update                   *
*          for update Lazarus/FPC/GLScene svn          *
*                                       Script by Kjow *
*                                                      *
* This script is designed for Ubuntu X86 (32 Bit)      *
*                                                      *
********************************************************

Please, enter your account user:
test
...
NOTE
account user is needed to identify your home path: e.g. /home/user/ or /home/maemo/ or /home/kjow/ etc.

What scripts do

lazarus_first_time
This script downloads svn sources and zip needed to build and configure your Ubuntu (x86) box with Lazarus AND FPC (both are enabled to compile for i386-linux and cross compile for arm-linux).
You must run this script once, only first time.
lazarus_update
For daily/instantly svn updates there is an other script that updates and rebuilds all.