mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-20 15:32:06 +02:00
* check if git executable really exists
(cherry picked from commit a77f5221f3
)
This commit is contained in:
parent
5e06e89678
commit
7fca3c9b1f
@ -413,8 +413,10 @@ 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)
|
||||
|
@ -143,8 +143,10 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user