From 948813b93ae13ccb80203cba1d898968de717b3d Mon Sep 17 00:00:00 2001 From: Lekensteyn Date: Sat, 16 Jun 2012 22:43:32 +0200 Subject: [PATCH] Always update version when configure is executed --- .gitignore | 1 + Makefile.am | 2 +- configure.ac | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0c06e004..cc9ca894 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ src/converters/Mist* /missing /depcomp .libs +VERSION diff --git a/Makefile.am b/Makefile.am index e1d5774b..644e3eba 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,5 @@ SUBDIRS=lib src -EXTRA_DIST=server.html +EXTRA_DIST=server.html VERSION docs: doxygen ./Doxyfile > /dev/null .PHONY: docs diff --git a/configure.ac b/configure.ac index 4837fbcc..289a67fe 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AC_PREREQ([2.60]) AC_INIT([MistServer], - m4_esyscmd([git describe --tags | tr -d '\n']), + m4_esyscmd([git rev-parse 2>/dev/null&&git describe --tags > VERSION;tr -d '\n' < VERSION]), [contact@ddvtech.com]) AC_CONFIG_SRCDIR([src/buffer.cpp]) # foreign: no need for NEWS or INSTALL files