Change in docker-playground[master]: make/Makefile: use git to get the project's root directory

fixeria gerrit-no-reply at lists.osmocom.org
Thu Mar 11 14:07:46 UTC 2021


fixeria has submitted this change. ( https://gerrit.osmocom.org/c/docker-playground/+/23316 )

Change subject: make/Makefile: use git to get the project's root directory
......................................................................

make/Makefile: use git to get the project's root directory

Change-Id: I87a425515692e62df7b593a3c2a5b88a765d217d
---
M make/Makefile
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  osmith: Looks good to me, but someone else must approve
  pespin: Looks good to me, approved
  fixeria: Verified



diff --git a/make/Makefile b/make/Makefile
index 5280bef..f149291 100644
--- a/make/Makefile
+++ b/make/Makefile
@@ -41,7 +41,8 @@
 OSMOCOM_REPO_VERSION?=latest
 # Use "nightly" to use the nightly repo
 
-RELEASE_SUPPORT := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))/.make-release-support
+ROOT_DIR=$(shell git rev-parse --show-toplevel)
+RELEASE_SUPPORT := $(ROOT_DIR)/make/.make-release-support
 IMAGE?=$(REGISTRY_HOST)/$(USER)/$(NAME)
 
 VERSION?=$(shell . $(RELEASE_SUPPORT) ; getRelease)

-- 
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/23316
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I87a425515692e62df7b593a3c2a5b88a765d217d
Gerrit-Change-Number: 23316
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210311/1b307121/attachment.htm>


More information about the gerrit-log mailing list