Check whether the git tag start with the version number set in configure.ac

This commit is contained in:
François Grisez 2015-04-03 16:04:59 +02:00
parent 8b1d56ea9e
commit de19b3a734

View file

@ -199,7 +199,7 @@ AM_CXXFLAGS=$(COMMON_CFLAGS) $(STRICT_OPTIONS_CXX)
make_gitversion_h:
if test -n "$(GITLOG)" ; then \
if test "$(GITDESCRIBE)" != "" ; then \
if test "$(GIT_TAG)" != "$(PACKAGE_VERSION)" ; then \
if [ "$(GIT_TAG)" != "$(PACKAGE_VERSION)" ] && [[ ! "$(GIT_TAG)" =~ "$(PACKAGE_VERSION)-" ]]; then \
$(ECHO) "*** PACKAGE_VERSION and git tag differ. Please put them identical."; \
exit 1; \
fi ; \