aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile.in
diff options
context:
space:
mode:
authorMatthias P. Braendli (think) <matthias@mpb.li>2013-11-08 18:36:28 +0100
committerMatthias P. Braendli (think) <matthias@mpb.li>2013-11-08 18:36:28 +0100
commit76efba9975aa61c1f247b875ccebaddd0d2036c6 (patch)
treeb760fc5c42ecada53d881e70a9c84340cbe8a465 /src/Makefile.in
parentd930ee6b9a52f0eb9939b3fe55afd2361944edb2 (diff)
downloaddabmux-76efba9975aa61c1f247b875ccebaddd0d2036c6.tar.gz
dabmux-76efba9975aa61c1f247b875ccebaddd0d2036c6.tar.bz2
dabmux-76efba9975aa61c1f247b875ccebaddd0d2036c6.zip
insert hg revision into version string
Diffstat (limited to 'src/Makefile.in')
-rw-r--r--src/Makefile.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index c978e7e..3e4fe5f 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -344,11 +344,13 @@ target_vendor = @target_vendor@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
+@IS_HG_REPO_FALSE@HGVERSION_FLAGS = -DHGVERSION="\"-modified\""
+@IS_HG_REPO_TRUE@HGVERSION_FLAGS = -DHGVERSION="\"`hg parents --template '-{node|short}'`\""
FEC_FLAGS =
FEC_LIBS = -lfec
@HAVE_OUTPUT_ZEROMQ_TEST_FALSE@ZMQ_LIBS =
@HAVE_OUTPUT_ZEROMQ_TEST_TRUE@ZMQ_LIBS = -lzmq
-CRC_DabMux_CPPFLAGS = -I$(FARSYNC_DIR)
+CRC_DabMux_CPPFLAGS = -I$(FARSYNC_DIR) $(HGVERSION_FLAGS)
CRC_DabMux_LDADD = $(FEC_LIBS) $(ZMQ_LIBS) -lpthread
CRC_DabMux_SOURCES = DabMux.cpp \
dabInput.h dabInput.cpp \