[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)
- [nongnu] elpa/request updated (c5a1068 -> accd430), ELPA Syncer, 2021/02/13
- [nongnu] elpa/request f795d03 10/11: shell env variables are in a separate subspace, ELPA Syncer, 2021/02/13
- [nongnu] elpa/request 2364e18 01/11: add headers slot into request-response structure, ELPA Syncer, 2021/02/13
- [nongnu] elpa/request 576585d 03/11: reuse GITHUB_HEAD_REF, ELPA Syncer, 2021/02/13
- [nongnu] elpa/request ec35961 04/11: In for a penny, in for a pound, ELPA Syncer, 2021/02/13
- [nongnu] elpa/request c076219 09/11: okay, now cask24 is failing too, ELPA Syncer, 2021/02/13
- [nongnu] elpa/request 572a900 08/11: I may need to eval calls,
ELPA Syncer <=
- [nongnu] elpa/request 0eae5a0 02/11: fix checkdoc/package-lint/byte-compiler issue, ELPA Syncer, 2021/02/13
- [nongnu] elpa/request ef231e1 06/11: request-response-headers, ELPA Syncer, 2021/02/13
- [nongnu] elpa/request 8e6aaa5 05/11: Revert "add headers slot into request-response structure", ELPA Syncer, 2021/02/13
- [nongnu] elpa/request accd430 11/11: Merge pull request #201 from dickmao/dev, ELPA Syncer, 2021/02/13
- [nongnu] elpa/request c92102f 07/11: On 20210213, emacs24 couldn't download packages from elpa, ELPA Syncer, 2021/02/13