SOLVED : Can svn2revision be fooled or bypassed? lazarus / 3-General ---------------------------------------------------------------------- vfclists · 2015-03-09 20:41 I am compiling Lazarus by compiling from a local copy of Graeme's git mirror, and because I am not compiling in the working directory (I copy it to a separate directory) svn2revision is outputting "Unversioned directory" as the svn revision. Can it be bypassed or fooled in some way, so I can add both the Lazarus and FreePascal versions manually? ---------------------------------------------------------------------- Bart · 2015-03-09 20:49 In Tool->Configure Build lazarus you can uncheck the option to use it. Bart ---------------------------------------------------------------------- Cyrax · 2015-03-09 21:36 If you are using command line, add USESVN2REVISIONINC=0 into your make options. ---------------------------------------------------------------------- vfclists · 2015-03-25 19:44 Quote from: Cyrax on March 09, 2015, 10:36:49 pmIf you are using command line, add USESVN2REVISIONINC=0 into your make options. I tried it like this in a build script and it doesn't seem to work Code: [Select]make all PP=${FPC_COMPILER} USESVN2REVISIONINC=0 ---------------------------------------------------------------------- Cyrax · 2015-03-25 23:28 You need to generate ide/revision.inc manually. ---------------------------------------------------------------------- vfclists · 2015-03-26 09:30 Quote from: Cyrax on March 26, 2015, 12:28:25 amYou need to generate ide/revision.inc manually. I am generating it manually but the output says 'exported' even when I set 'USESVN2REVISIONINC=0' in the 'make' command. UPDATE: The solution works, I wasn't creating the revision.inc properly. It has to be the way svn2revision creates its own revision.inc files. I had some different syntax there.