added GIT_DOMAIN for ORIGIN

This commit is contained in:
Niko Kivel
2023-03-29 15:53:50 -06:00
committed by Dirk Zimoch
parent c8e2c962eb
commit aacb5605e0
+3 -1
View File
@@ -71,6 +71,7 @@ BUILDCLASSES = vxWorks Linux WIN32
EPICS_MODULES ?= /ioc/modules
MODULE_LOCATION = ${EPICS_MODULES}/$(or ${PRJ},$(error PRJ not defined))/$(or ${LIBVERSION},$(error LIBVERSION not defined))
EPICS_LOCATION = /usr/local/epics
GIT_DOMAIN = psi.ch
DOCUEXT = txt html htm doc pdf ps tex dvi gif jpg png
DOCUEXT += TXT HTML HTM DOC PDF PS TEX DVI GIF JPG PNG
@@ -179,7 +180,7 @@ export MAKE_FIRST
export SUBMODULES
export USE_LIBVERSION
export ORIGIN=$(firstword $(shell git remote -v 2>/dev/null | awk '/psi.ch.*(fetch)/{print $$2;exit}')$(patsubst %,[%],$(shell git describe --tags --dirty --always --long 2>/dev/null)) $(PWD))
export ORIGIN=$(firstword $(shell git remote -v 2>/dev/null | awk '/${GIT_DOMAIN}.*(fetch)/{print $$2;exit}')$(patsubst %,[%],$(shell git describe --tags --dirty --always --long 2>/dev/null)) $(PWD))
# Some shell commands:
RMDIR = rm -rf
@@ -255,6 +256,7 @@ debug::
@echo "VERSIONCHECKFILES = ${VERSIONCHECKFILES}"
@echo "ARCH_FILTER = ${ARCH_FILTER}"
@echo "PRJ = ${PRJ}"
@echo "GIT_DOMAIN = ${GIT_DOMAIN}"
what::
@echo "LIBVERSION = ${LIBVERSION}"