From fbbf37d5de66aa3d075f54ee71b0f4e180f471bb Mon Sep 17 00:00:00 2001 From: Heikki Hannikainen Date: Sun, 5 Jan 2014 16:51:15 +0200 Subject: [PATCH] Makefile: Deal with older git versions --- src/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.in b/src/Makefile.in index 04d0b7e..11c7ec2 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -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; \