#1 2010-07-22 07:49:57

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,206
Website

How to get the source code in its latest version?

See also the main article:
http://synopse.info/fossil/wiki?name=Get+the+source


In order to get the latest version of all source code available in our source code repository, the easiest is to get a daily snapshot of the repository directly from http://synopse.info/files/mORMotNightlyBuild.zip


Or you can use fossil directly, following these steps:

1. Pointer your web browser at http://synopse.info/fossil/login or select the "Source Code" button on the top toolbar of this page, then click on the "Login" menu button.

3. Log in as anonymous. The password is shown on screen. Just click on the "Fill out captcha" button then on the "Login" button.
The reason for requiring this login is to prevent spiders from walking the entire website, downloading ZIP archives of every historical version, and thereby soaking up all our bandwidth.

4. Click on "Leaves" on the main top bar button on screen.

5. Click on the first link (something like 6b684fb2) just left to the "Leaf:" text on the screen.
So you'll get the source code in its latest state.

6. Then click on "ZIP archive" link in the "Other Links" section.

You'll get a ZIP archive with all the files of the repository, up to date.

Then open this archive, and you'll find all source code files in there.


Enjoy and contribute!

Offline

#2 2013-05-22 20:21:27

Antonio
Member
From: Porto Alegre - Brasil
Registered: 2013-03-26
Posts: 18
Website

Re: How to get the source code in its latest version?

I found this error and do not know where to report!

procedure TSQLRecordProperties.RegisterCustomRTTIRecordProperty(aTable: TClass;
  aRecordInfo: PTypeInfo; const aName: RawUTF8;  aPropertyPointer: pointer;
  aAttributes: TSQLPropInfoAttributes=[]; aFieldWidth: integer=0;
  aData2Text: TOnSQLPropInfoRecord2Text=nil;
  aText2Data: TOnSQLPropInfoRecord2Data=nil);
begin
  Fields.Add(aTable,TSQLPropInfoRecordRTTI.Create(aRecordInfo,aName,Fields.Count,
    aPropertyPointer,aAttributes,aFieldWidth,aData2Text,aText2Data),); <----- 
end;

Offline

#3 2013-05-23 06:44:34

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,206
Website

Re: How to get the source code in its latest version?

It has already been reported in http://synopse.info/forum/viewtopic.php?id=1282

Small typo fixed.
(it was compiling fine with Delphi 7, do not know why)
smile
See http://synopse.info/fossil/info/4f4c1de9a2

Offline

#4 2015-06-05 17:43:38

turrican
Member
From: Barcelona
Registered: 2015-06-05
Posts: 94
Website

Re: How to get the source code in its latest version?

Hi,

I make a powershell script to download and uncompress mORMot last build automatically :

# Update MORMOT Nightly

Add-Type -assembly "System.IO.Compression.FileSystem"

$mormotURL = "[url]http://synopse.info/files/mORMotNightlyBuild.zip[/url]";
$directory = "YOUR_MORMOTPATH"
$filename = "mORMotNightlyBuild.zip";

if (![System.IO.Directory]::Exists($directory)){
    try {
        [System.IO.Directory]::CreateDirectory($directory)
    }
    catch [Exception] {
        Write-Host $_.Exception.Message; 
    }
} 
try{
    wget $mormotURL -OutFile $directory$filename;
    [System.IO.Compression.zipfile]::ExtractToDirectory($directory + $filename, $directory)
}
catch [Exception] {
    Write-Host $_.Exception.Message;  

}

Last edited by turrican (2015-06-05 17:44:13)

Offline

Board footer

Powered by FluxBB