]> the.earth.li Git - onak.git/commitdiff
Add git commit details to non-release builds
authorJonathan McDowell <noodles@earth.li>
Thu, 20 Aug 2015 10:30:52 +0000 (12:30 +0200)
committerJonathan McDowell <noodles@earth.li>
Thu, 20 Aug 2015 10:30:52 +0000 (12:30 +0200)
The previous bzr version info is long unused, so replace with
'git describe' to embed the git version status in builds from git.

Makefile.in

index d23f50accf051d96bd160bb29dc1724150d77b28..463e4f8c19ab813ede9569a431e6092bf16072e0 100644 (file)
@@ -178,8 +178,8 @@ doxygen-docs: *.c *.h Doxyfile
 
 version.h:
        @echo '#include "config.h"' > version.h
-       @if [ -e .bzr ]; then \
-               echo "#define ONAK_VERSION PACKAGE_VERSION \"+bzr`bzr revno`\"" \
+       @if [ -e .git ]; then \
+               echo "#define ONAK_VERSION \"`git describe --tags --dirty | cut -d - -f 2-`\"" \
                >> version.h; \
        else \
                echo "#define ONAK_VERSION PACKAGE_VERSION" >> version.h; \