mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 23:59:23 +02:00
* check if git executable really exists
This commit is contained in:
parent
6c8b757795
commit
a77f5221f3
@ -461,7 +461,9 @@ ifdef SOURCE_DATE_EPOCH
|
|||||||
else
|
else
|
||||||
GIT_DIR = $(wildcard ../.git)
|
GIT_DIR = $(wildcard ../.git)
|
||||||
ifneq ($(GIT_DIR),)
|
ifneq ($(GIT_DIR),)
|
||||||
COMPDATESTR:=$(shell $(GIT) log -1 --pretty=%cd --date=format:'%Y/%m/%d')
|
ifneq ($(GIT),)
|
||||||
|
COMPDATESTR:=$(shell $(GIT) log -1 --pretty=%cd --date=format:'%Y/%m/%d')
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifdef COMPDATESTR
|
ifdef COMPDATESTR
|
||||||
|
@ -182,7 +182,9 @@ 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
|
||||||
COMPDATESTR:=$(shell $(GIT) log -1 --pretty=%cd --date=format:'%Y/%m/%d')
|
ifneq ($(GIT),)
|
||||||
|
COMPDATESTR:=$(shell $(GIT) log -1 --pretty=%cd --date=format:'%Y/%m/%d')
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user