Commit b84ad628 authored by Guillaume BIENKOWSKI's avatar Guillaume BIENKOWSKI

Fix GIT check

parent 5846cda4
GITVERSION_FILE=gitversion.h
GITVERSION_FILE_TMP=gitversion.h.tmp
## This command is used to check if the sources are cloned in a git repo.
## We can't only depend on the presence of the .git/ directory anymore,
## because of gits submodule handling.
## We now simply issue a git status and if there's an error, the $(GITSTATUS)
## variable won't contain "GITOK"
GITSTATUS=`cd $(top_srcdir) && git status > /dev/null && echo GITOK`
ECHO=/bin/echo
ANDROID_SRC_FILES= \
......@@ -427,7 +434,7 @@ imgdir=$(datadir)/images/
img_DATA=voip/nowebcamCIF.jpg
make_gitversion_h:
if test -d $(top_srcdir)/.git ; then \
if test "$(GITSTATUS)" == "GITOK" ; then \
$(ECHO) -n "#define GIT_VERSION " > $(GITVERSION_FILE_TMP) &&\
$(ECHO) \"`cd $(top_srcdir) && git describe --always`\" >> $(GITVERSION_FILE_TMP) &&\
if test "`cat $(GITVERSION_FILE_TMP)`" != "`cat $(srcdir)/$(GITVERSION_FILE)`" ; then \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment