2008/11/19 Graeme Geldenhuys <[EMAIL PROTECTED]>: > Hi, > > My current project is in SubVersion. I user the SubVersion revision > number as my Build number in my project version. Currently I use a > revision.inc file which I have to manually edit from time to time (I'm > lazy doing after every commit). > > Is there a way I can somehow tell Lazarus to automatically populate > that file with the correct revision number *before* each compile?
before each compile, you can execute a program (see lazarus/tools/svn2revisioninc.pas) that puts the revision number in a revision.inc, or something. see the "compilation" tab of "compiler options". you can obviously use this method in a Makefile, too (like lazarus does). henry _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
