소스 검색

* properly check if -unpushed should be appended in revision.inc

(cherry picked from commit 3e3f99c328be386e9cf6b7f2cceaab9c5283873e)
florian 4 년 전
부모
커밋
1fd49868c7
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      compiler/Makefile
  2. 1 1
      compiler/Makefile.fpc

+ 1 - 1
compiler/Makefile

@@ -501,7 +501,7 @@ ifneq ($(wildcard ../.git),)
 ifneq ($(GIT),)
 ifneq ($(GIT),)
 GITDESCRIBE=$(shell $(GIT) describe --dirty)
 GITDESCRIBE=$(shell $(GIT) describe --dirty)
 REVSTR:=$(word 2,$(subst -, ,$(GITDESCRIBE)))-$(word 3,$(subst -, ,$(GITDESCRIBE)))
 REVSTR:=$(word 2,$(subst -, ,$(GITDESCRIBE)))-$(word 3,$(subst -, ,$(GITDESCRIBE)))
-ifneq (git log @{u}..,)
+ifneq ($(shell $(GIT) log @{u}..),)
 REVSTR:=$(REVSTR)-unpushed
 REVSTR:=$(REVSTR)-unpushed
 endif
 endif
 ifneq ($(word 4,$(subst -, ,$(GITDESCRIBE))),)
 ifneq ($(word 4,$(subst -, ,$(GITDESCRIBE))),)

+ 1 - 1
compiler/Makefile.fpc

@@ -246,7 +246,7 @@ ifneq ($(wildcard ../.git),)
 ifneq ($(GIT),)
 ifneq ($(GIT),)
 GITDESCRIBE=$(shell $(GIT) describe --dirty)
 GITDESCRIBE=$(shell $(GIT) describe --dirty)
 REVSTR:=$(word 2,$(subst -, ,$(GITDESCRIBE)))-$(word 3,$(subst -, ,$(GITDESCRIBE)))
 REVSTR:=$(word 2,$(subst -, ,$(GITDESCRIBE)))-$(word 3,$(subst -, ,$(GITDESCRIBE)))
-ifneq (git log @{u}..,)
+ifneq ($(shell $(GIT) log @{u}..),)
 REVSTR:=$(REVSTR)-unpushed
 REVSTR:=$(REVSTR)-unpushed
 endif
 endif
 ifneq ($(word 4,$(subst -, ,$(GITDESCRIBE))),)
 ifneq ($(word 4,$(subst -, ,$(GITDESCRIBE))),)