Makefile: Deal with older git versions

This commit is contained in:
Heikki Hannikainen 2014-01-05 16:51:15 +02:00
parent b6dff42c43
commit fbbf37d5de
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ CFGFILE= /opt/aprsc/etc/aprsc.conf
VERSION:=$(shell cat VERSION)
GIT_CMD:=$(shell which git)
GITVERSION:=$(shell if test -x $(GIT_CMD) -a \( -d .git -o -d ../.git \) ; then \
$(GIT_CMD) describe --long --dirty=M | sed -e 's/^.*-//' | tee GITVERSION; \
($(GIT_CMD) describe --long --dirty=M || $(GIT_CMD) describe --long)| sed -e 's/^.*-//' | tee GITVERSION; \
else \
(if test -f GITVERSION; then \
cat GITVERSION; \