> ok, I think I understand now.
>
> But is it necessary to increase the revision when Lazarus is built?
>
> How does that bring a correct revision? You build Lazarus after each
> patch?
>
> Maybe we could have a script to update revision.inc

Have a look at the Makefile.fpc of the compiler. It creates a revision.inc
on the fly and adds a define that is used in the sources. See below for
the fragments:

REVINC:=$(wildcard revision.inc)
ifneq ($(REVINC),)
override LOCALOPT+=-dREVINC
ifeq ($(REVSTR),)
SVNVERSION:=$(wildcard svnversion$(EXEEXT))
REVSTR:=$(shell svnversion .)
export REVSTR
endif
endif


function full_version_string:string;
begin
  full_version_string := version_nr+'.'+release_nr+'.'+patch_nr+minorpatch
{$ifdef REVINC}
  +'-r'+{$i revision.inc}
{$endif REVINC}
  ;
end;



_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to