mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 03:28:07 +00:00
force git tag and configure.ac to say the same thing
This commit is contained in:
parent
358516fd68
commit
88f9e557bb
1 changed files with 5 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
GITVERSION_FILE=liblinphone_gitversion.h
|
||||
GITVERSION_FILE_TMP=liblinphone_gitversion.h.tmp
|
||||
GITDESCRIBE=`git describe --always`
|
||||
GIT_TAG=`git describe --abbrev=0`
|
||||
GITREVISION=`git rev-parse HEAD`
|
||||
|
||||
ECHO=/bin/echo
|
||||
|
|
@ -135,6 +136,10 @@ AM_CXXFLAGS=$(AM_CFLAGS)
|
|||
|
||||
make_gitversion_h:
|
||||
if test "$(GITDESCRIBE)" != "" ; then \
|
||||
if test "$(GIT_TAG)" != $(PACKAGE_VERSION) ; then \
|
||||
echo "*** PACKAGE_VERSION and git tag differ. Please put them identical."; \
|
||||
exit 1; \
|
||||
fi ; \
|
||||
$(ECHO) -n "#define LIBLINPHONE_GIT_VERSION \"$(GITDESCRIBE)\"" > $(GITVERSION_FILE_TMP) ; \
|
||||
elif test "$(GITREVISION)" != "" ; then \
|
||||
$(ECHO) -n "#define LIBLINPHONE_GIT_VERSION \"$(LINPHONE_VERSION)_$(GITREVISION)\"" > $(GITVERSION_FILE_TMP) ; \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue