* check if git executable really exists

This commit is contained in:
florian 2021-08-21 20:36:29 +02:00
parent 6c8b757795
commit a77f5221f3
2 changed files with 6 additions and 2 deletions

View File

@ -461,9 +461,11 @@ ifdef SOURCE_DATE_EPOCH
else
GIT_DIR = $(wildcard ../.git)
ifneq ($(GIT_DIR),)
ifneq ($(GIT),)
COMPDATESTR:=$(shell $(GIT) log -1 --pretty=%cd --date=format:'%Y/%m/%d')
endif
endif
endif
ifdef COMPDATESTR
override OPTNEW+=-DD$(COMPDATESTR)
endif

View File

@ -182,9 +182,11 @@ else
GIT_DIR = $(wildcard ../.git)
ifneq ($(GIT_DIR),)
# ... then take date from head
ifneq ($(GIT),)
COMPDATESTR:=$(shell $(GIT) log -1 --pretty=%cd --date=format:'%Y/%m/%d')
endif
endif
endif
ifdef COMPDATESTR
override OPTNEW+=-DD$(COMPDATESTR)