quiet git if .git is not there

sayer/1.4-spce2.6
Stefan Sayer 16 years ago
parent 4d2c3c4ac0
commit e73038f1fc

@ -7,7 +7,9 @@ GIT = $(shell which git)
SVNVERSION = $(shell which svnversion)
ifneq ($(GIT),)
SCM_REV = $(shell if git --help describe |grep dirty 2>&1 >/dev/null ; then git describe --always --dirty; else git describe --always ; fi)
SCM_REV = $(shell if git --help describe |grep dirty 2>&1 >/dev/null ; \
then git describe --always --dirty 2>/dev/null; \
else git describe --always 2>/dev/null; fi)
endif
ifeq ($(SCM_REV),)

Loading…
Cancel
Save