Page 1 of 1
Trunk Revision Numbers
Posted: Fri Oct 26, 2012 9:07 pm
by Thargoid
A small thought - would it be possible to have trunk add its current revision number to the latest.log when it opens? Maybe add it to the first line of the log for example
Code: Select all
Opening log for Oolite version 1.77 (x86-32 test release) under Windows at 2012-10-26 21:56:24 +0100.
Perhaps add it in after the 1.77 as either 1.77.xxxx or 1.77 rev xxxx?
Just thinking to make life a little easier to track what revision is currently in use, for bug tracking and making sure correct revisions are in use for new feature availability etc.[/color]
Re: Trunk Revision Numbers
Posted: Fri Oct 26, 2012 9:10 pm
by Cody
The trunk version numbers are already added to logs from the nightly builds, thus:
Code: Select all
Oolite development version 1.77.0.5436
Re: Trunk Revision Numbers
Posted: Fri Oct 26, 2012 9:22 pm
by Thargoid
I mean for build-from-source builds. They don't have any branding.
Sorry should have been more specific.
Re: Trunk Revision Numbers
Posted: Fri Oct 26, 2012 9:23 pm
by Cody
Thargoid wrote:I mean for build-from-source builds.
Yeah, I realised that - I was just saying...
Re: Trunk Revision Numbers
Posted: Fri Oct 26, 2012 9:42 pm
by cim
"make release-snapshot" adds the watermark. Or explicitly define the SNAPSHOT_BUILD compile option, if you prefer.
Re: Trunk Revision Numbers
Posted: Sat Oct 27, 2012 10:54 am
by Thargoid
Those either seem to do nothing, aren't recognised as command line options or add "Development build" without a number to the screen as a watermark...
Re: Trunk Revision Numbers
Posted: Sat Oct 27, 2012 11:32 am
by cim
Try "make -f Makefile" rather than "make" as the command?
Re: Trunk Revision Numbers
Posted: Sat Oct 27, 2012 12:20 pm
by Thargoid
cim wrote:Try "make -f Makefile" rather than "make" as the command?
Using make -f Makefile release-snapshot
performed a make, but didn't watermark anything.
I'll try the other variations later and see if I can get something that works.
Re: Trunk Revision Numbers
Posted: Sat Oct 27, 2012 12:24 pm
by another_commander
Did you try a make -fMakefile clean first? Remember, when you change build settings, you must perform a make clean to be sure that everything is updated with the new settings.
Re: Trunk Revision Numbers
Posted: Sat Oct 27, 2012 2:23 pm
by Thargoid
No I hadn't. Now done and watermark is there fully.