2
0
Эх сурвалжийг харах

* check if git executable really exists

florian 3 жил өмнө
parent
commit
a77f5221f3

+ 3 - 1
compiler/Makefile

@@ -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

+ 3 - 1
compiler/Makefile.fpc

@@ -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