mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-26 20:50:30 +02:00
* check if git executable really exists
This commit is contained in:
parent
848bd3e0c0
commit
b4f939a4ab
@ -461,9 +461,11 @@ ifdef SOURCE_DATE_EPOCH
|
|||||||
else
|
else
|
||||||
GIT_DIR = $(wildcard ../.git)
|
GIT_DIR = $(wildcard ../.git)
|
||||||
ifneq ($(GIT_DIR),)
|
ifneq ($(GIT_DIR),)
|
||||||
|
ifneq ($(GIT),)
|
||||||
COMPDATESTR:=$(shell $(GIT) log -1 --pretty=%cd --date=format:'%Y/%m/%d')
|
COMPDATESTR:=$(shell $(GIT) log -1 --pretty=%cd --date=format:'%Y/%m/%d')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
ifdef COMPDATESTR
|
ifdef COMPDATESTR
|
||||||
override OPTNEW+=-DD$(COMPDATESTR)
|
override OPTNEW+=-DD$(COMPDATESTR)
|
||||||
endif
|
endif
|
||||||
|
@ -182,9 +182,11 @@ else
|
|||||||
GIT_DIR = $(wildcard ../.git)
|
GIT_DIR = $(wildcard ../.git)
|
||||||
ifneq ($(GIT_DIR),)
|
ifneq ($(GIT_DIR),)
|
||||||
# ... then take date from head
|
# ... then take date from head
|
||||||
|
ifneq ($(GIT),)
|
||||||
COMPDATESTR:=$(shell $(GIT) log -1 --pretty=%cd --date=format:'%Y/%m/%d')
|
COMPDATESTR:=$(shell $(GIT) log -1 --pretty=%cd --date=format:'%Y/%m/%d')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef COMPDATESTR
|
ifdef COMPDATESTR
|
||||||
override OPTNEW+=-DD$(COMPDATESTR)
|
override OPTNEW+=-DD$(COMPDATESTR)
|
||||||
|
Loading…
Reference in New Issue
Block a user