emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/request 572a900 08/11: I may need to eval calls


From: ELPA Syncer
Subject: [nongnu] elpa/request 572a900 08/11: I may need to eval calls
Date: Sat, 13 Feb 2021 19:57:11 -0500 (EST)

branch: elpa/request
commit 572a9004b0bceeb06414a0c792f3fd07f9550e99
Author: dickmao <none>
Commit: dickmao <none>

    I may need to eval calls
---
 Makefile | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/Makefile b/Makefile
index 0fcb514..ae3668e 100644
--- a/Makefile
+++ b/Makefile
@@ -80,24 +80,39 @@ install: compile dist
        $(EMACS) -Q --batch --eval "(package-initialize)" \
          --eval "(package-install-file \"dist/request-$(shell $(CASK) 
version).tar\")"
 
+define SET_GITHUB_ACTOR =
 ifeq ($(GITHUB_ACTOR),)
 GITHUB_ACTOR := $(shell git config user.name)
 endif
+endef
 
+define SET_GITHUB_ACTOR_REPOSITORY =
 GITHUB_ACTOR_REPOSITORY := $(GITHUB_ACTOR)/$(shell basename `git rev-parse 
--show-toplevel`)
+endef
 
+define SET_GITHUB_HEAD_REF =
 ifeq ($(GITHUB_HEAD_REF),)
 GITHUB_HEAD_REF := $(shell git rev-parse --abbrev-ref HEAD)
 endif
+endef
 
+define SET_GITHUB_SHA =
 ifeq ($(GITHUB_SHA),)
 GITHUB_SHA := $(shell git rev-parse origin/$(GITHUB_HEAD_REF))
 endif
+endef
 
+define SET_GITHUB_COMMIT =
 GITHUB_COMMIT := $(shell if git show -s --format=%s "${GITHUB_SHA}" | egrep -q 
"^Merge .* into" ; then git show -s --format=%s "${GITHUB_SHA}" | cut -d " " 
-f2 ; else echo "${GITHUB_SHA}" ; fi)
+endef
 
 .PHONY: test-install-vars
 test-install-vars:
+       $(eval $(call SET_GITHUB_ACTOR))
+       $(eval $(call SET_GITHUB_ACTOR_REPOSITORY))
+       $(eval $(call SET_GITHUB_HEAD_REF))
+       $(eval $(call SET_GITHUB_SHA))
+       $(eval $(call SET_GITHUB_COMMIT))
        git show -s --format=%s $(GITHUB_COMMIT)
        git show -s --format=%s $(GITHUB_SHA)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]