Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-03

including lazarus svn revision number

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Brad Campbell

G'day all,

When I'm compiling an app I can include all my fpc details with {$I %Rhubarb%}.

Is there an easy way I can include the current lazarus svn revision in my compiled applications? I looked at parsing $lazdir/ide/revision.inc, but I wonder if there is a better way I'm missing?

Regards,

Dolphins are so intelligent that within a few weeks they can train Americans to stand at the edge of the pool and throw them fish.

Reply by email

Guionardo Furlan
to Brad Campbell

Try this

LCL:
http://lazarus-ccr.sourceforge.net/docs/lcl/lclversion/index.html

Compiler:
http://lazarus-ccr.sourceforge.net/fpcdoc/prog/progsu38.html#x45-430001.1.38

2009/3/16 Brad Campbell :

Show quoted text 17 lines
G'day all, When I'm compiling an app I can include all my fpc details with {$I %Rhubarb%}. Is there an easy way I can include the current lazarus svn revision in my compiled applications? I looked at parsing $lazdir/ide/revision.inc, but I wonder if there is a better way I'm missing? Regards, -- Dolphins are so intelligent that within a few weeks they can train Americans to stand at the edge of the pool and throw them fish. _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Timeo hominem unius libri Cogito ergo sum - Carpe diem []s Guionardo Furlan http://guionardo.blogspot.com http://www.guionardofurlan.com.br

Reply by email

Brad Campbell
to Guionardo Furlan
Guionardo Furlan wrote 7 lines

Thanks for that, but it appears to relate only to the LCL version and is set in constants in the lcl/lclversion.pas file. I'll build a makefile hack that includes the ide/revision.inc file.

Regards,
Brad

Dolphins are so intelligent that within a few weeks they can train Americans to stand at the edge of the pool and throw them fish.

Reply by email