slowly getting ready for 3.0

Henrik Brautaset Aronsen subsurface at henrik.synth.no
Thu Jan 24 14:03:49 PST 2013


Dirk Hohndel wrote:
> Which reminds me - someone with better Makefile foo than I have could do
> me a favor and create a rule that allows us to have the git SHA as part
> of the version number of any non-release build - so that the About
> window would clearly show you you are running a development version.
>
> Something like
>
> Subsurface v2.1
>
> for the release but then
>
> Subsurface post-v2.1 developer build SHA 208820c778f0
>
> for anything after that...

Something like this should work:

diff --git a/Makefile b/Makefile
index 30e9fed..0370deb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION=2.1
+VERSION=2.1 developer build $(shell git rev-parse --short=12 HEAD)

  CC=gcc
  CFLAGS=-Wall -Wno-pointer-sign -g $(CLCFLAGS)


Henrik



More information about the subsurface mailing list