make: Remove show-upstream-git-fetch-url and co

They haven't been necessary for quite some time.
This commit is contained in:
Loïc Hoguin 2024-07-22 14:26:12 +02:00
parent 4e8ad90cd0
commit a5cfb1ea9a
No known key found for this signature in database
GPG Key ID: C69E26E3A9DF618F
3 changed files with 0 additions and 49 deletions

View File

@ -14,21 +14,6 @@ READY_DEPS = $(foreach DEP,\
RELEASED_RMQ_DEPS = $(filter $(RABBITMQ_COMPONENTS),$(DEPS) $(BUILD_DEPS))
.PHONY: show-upstream-git-fetch-url show-upstream-git-push-url \
show-current-git-fetch-url show-current-git-push-url
show-upstream-git-fetch-url:
@echo $(RABBITMQ_UPSTREAM_FETCH_URL)
show-upstream-git-push-url:
@echo $(RABBITMQ_UPSTREAM_PUSH_URL)
show-current-git-fetch-url:
@echo $(RABBITMQ_CURRENT_FETCH_URL)
show-current-git-push-url:
@echo $(RABBITMQ_CURRENT_PUSH_URL)
update-contributor-code-of-conduct:
$(verbose) for repo in $(READY_DEPS:%=$(DEPS_DIR)/%); do \
cp $(DEPS_DIR)/rabbit_common/CODE_OF_CONDUCT.md $$repo/CODE_OF_CONDUCT.md; \

View File

@ -8,35 +8,3 @@ clean:
distclean: clean
find . -regex '.*\(~\|#\|\.swp\)' -exec rm {} \;
# Upstream URL for the current project.
RABBITMQ_COMPONENT_REPO_NAME := rabbitmq-codegen
RABBITMQ_UPSTREAM_FETCH_URL ?= https://github.com/rabbitmq/$(RABBITMQ_COMPONENT_REPO_NAME).git
RABBITMQ_UPSTREAM_PUSH_URL ?= git@github.com:rabbitmq/$(RABBITMQ_COMPONENT_REPO_NAME).git
# Current URL for the current project. If this is not a Git clone,
# default to the upstream Git repository.
ifneq ($(wildcard .git),)
git_origin_fetch_url := $(shell git config remote.origin.url)
git_origin_push_url := $(shell git config remote.origin.pushurl || git config remote.origin.url)
RABBITMQ_CURRENT_FETCH_URL ?= $(git_origin_fetch_url)
RABBITMQ_CURRENT_PUSH_URL ?= $(git_origin_push_url)
else
RABBITMQ_CURRENT_FETCH_URL ?= $(RABBITMQ_UPSTREAM_FETCH_URL)
RABBITMQ_CURRENT_PUSH_URL ?= $(RABBITMQ_UPSTREAM_PUSH_URL)
endif
.PHONY: show-upstream-git-fetch-url show-upstream-git-push-url \
show-current-git-fetch-url show-current-git-push-url
show-upstream-git-fetch-url:
@echo $(RABBITMQ_UPSTREAM_FETCH_URL)
show-upstream-git-push-url:
@echo $(RABBITMQ_UPSTREAM_PUSH_URL)
show-current-git-fetch-url:
@echo $(RABBITMQ_CURRENT_FETCH_URL)
show-current-git-push-url:
@echo $(RABBITMQ_CURRENT_PUSH_URL)

View File

@ -269,8 +269,6 @@ rmq_cmp_repo_name = $(word 2,$(dep_$(1)))
# Upstream URL for the current project.
RABBITMQ_COMPONENT_REPO_NAME := $(call rmq_cmp_repo_name,$(PROJECT))
RABBITMQ_UPSTREAM_FETCH_URL ?= https://github.com/rabbitmq/$(RABBITMQ_COMPONENT_REPO_NAME).git
RABBITMQ_UPSTREAM_PUSH_URL ?= git@github.com:rabbitmq/$(RABBITMQ_COMPONENT_REPO_NAME).git
# Current URL for the current project. If this is not a Git clone,
# default to the upstream Git repository.