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

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

[nongnu] elpa/request f795d03 10/11: shell env variables are in a separa


From: ELPA Syncer
Subject: [nongnu] elpa/request f795d03 10/11: shell env variables are in a separate subspace
Date: Sat, 13 Feb 2021 19:57:11 -0500 (EST)

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

    shell env variables are in a separate subspace
    
    In the  they will not express in Makefile-space.
---
 Makefile | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/Makefile b/Makefile
index 3ab48a6..23fe842 100644
--- a/Makefile
+++ b/Makefile
@@ -81,9 +81,7 @@ install: compile dist
          --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
+GITHUB_ACTOR := $(shell if [ -z ${GITHUB_ACTOR} ]; then git config user.name; 
else echo ${GITHUB_ACTOR} ; fi)
 endef
 
 define SET_GITHUB_ACTOR_REPOSITORY =
@@ -91,15 +89,11 @@ GITHUB_ACTOR_REPOSITORY := $(GITHUB_ACTOR)/$(shell basename 
`git rev-parse --sho
 endef
 
 define SET_GITHUB_HEAD_REF =
-ifeq ($(GITHUB_HEAD_REF),)
-GITHUB_HEAD_REF := $(shell git rev-parse --abbrev-ref HEAD)
-endif
+GITHUB_HEAD_REF := $(shell if [ -z ${GITHUB_HEAD_REF} ]; then git rev-parse 
--abbrev-ref HEAD; else echo ${GITHUB_HEAD_REF} ; fi)
 endef
 
 define SET_GITHUB_SHA =
-ifeq ($(GITHUB_SHA),)
-GITHUB_SHA := $(shell git rev-parse origin/${GITHUB_HEAD_REF})
-endif
+GITHUB_SHA := $(shell if [ -z ${GITHUB_SHA} ] ; then git rev-parse 
origin/${GITHUB_HEAD_REF}; else echo ${GITHUB_SHA}; fi)
 endef
 
 define SET_GITHUB_COMMIT =



reply via email to

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