summaryrefslogtreecommitdiff
path: root/defs/gmake.mk
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-16 02:08:02 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-16 10:25:27 +0900
commit12074ad01c02b4a6912fff64d69b659351bdf9e8 (patch)
treed15a1a2853407d51633c9977d6fc6246f8b621ad /defs/gmake.mk
parent1b02f6c020e5d73cbe8e759ada7da908ce6a3f15 (diff)
downloadruby-12074ad01c02b4a6912fff64d69b659351bdf9e8.tar.gz
Use GNU make built-in funtion [ci skip]
Diffstat (limited to 'defs/gmake.mk')
-rw-r--r--defs/gmake.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/defs/gmake.mk b/defs/gmake.mk
index baea0dc02f..d234791d13 100644
--- a/defs/gmake.mk
+++ b/defs/gmake.mk
@@ -196,8 +196,8 @@ update-github: fetch-github
curl -s $(if $(GITHUB_TOKEN),-H "Authorization: bearer $(GITHUB_TOKEN)") $(PULL_REQUEST_API) | \
$(BASERUBY) -rjson -e 'JSON.parse(STDIN.read)["head"].tap { |h| print "#{h["repo"]["full_name"]} #{h["ref"]}" }' \
))
- $(eval FORK_REPO := $(shell echo $(PULL_REQUEST_FORK_BRANCH) | cut -d' ' -f1))
- $(eval PR_BRANCH := $(shell echo $(PULL_REQUEST_FORK_BRANCH) | cut -d' ' -f2))
+ $(eval FORK_REPO := $(word 1,$(PULL_REQUEST_FORK_BRANCH)))
+ $(eval PR_BRANCH := $(word 2,$(PULL_REQUEST_FORK_BRANCH)))
$(eval GITHUB_UPDATE_WORKTREE := $(shell mktemp -d "$(srcdir)/gh-$(PR)-XXXXXX"))
git -C "$(srcdir)" worktree add $(notdir $(GITHUB_UPDATE_WORKTREE)) "gh-$(PR)"