mirror of
https://src.koozali.org/smeserver/common.git
synced 2024-11-24 05:17:28 +01:00
get contrib/sme from git.url version from branch
This commit is contained in:
parent
d38b265a99
commit
06f7ee77c3
@ -21,8 +21,11 @@ HEAD_BRANCH := devel
|
|||||||
endif
|
endif
|
||||||
BASEDIR := $(shell basename `pwd`)
|
BASEDIR := $(shell basename `pwd`)
|
||||||
# BRANCH := $(BASEDIR)
|
# BRANCH := $(BASEDIR)
|
||||||
# Get tag for module - e.g. contribs10 or sme10 from file left by cvs2git conversion script
|
VERG = $(shell [ `/usr/bin/git branch|awk '{print $$2}'` == 'master' ] && echo 11 || echo `/usr/bin/git branch | awk '{print $$2}'`)
|
||||||
BRANCH := $(shell cat contriborbase)
|
PREF = $(shell [ `/usr/bin/git config --get remote.origin.url| cut -d/ -f4` == "smecontrib" ] && echo 'contrib' || echo 'sme')
|
||||||
|
#BRANCH := $(shell cat contriborbase)
|
||||||
|
BRANCH = "$(PREF)$(VERG)"
|
||||||
|
$(info $$BRANCH is [${BRANCH}])
|
||||||
BRANCHINFO = $(shell grep ^$(BRANCH): $(COMMON_DIR)/branches | cut -d: --output-delimiter=" " -f2-)
|
BRANCHINFO = $(shell grep ^$(BRANCH): $(COMMON_DIR)/branches | cut -d: --output-delimiter=" " -f2-)
|
||||||
TARGET := $(word 1, $(BRANCHINFO))
|
TARGET := $(word 1, $(BRANCHINFO))
|
||||||
DIST = $(word 2, $(BRANCHINFO))
|
DIST = $(word 2, $(BRANCHINFO))
|
||||||
@ -155,7 +158,7 @@ $(shell cat sources 2>/dev/null | while read m f ; do if test "$$f" = "$@" ; the
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
# list the possible targets for valid arches
|
# list the possible targets for valid arches
|
||||||
ARCHES = noarch i386 i586 i686 x86_64 # ia64 s390 s390x ppc ppc64 pseries ppc64pseries iseries ppc64iseries athlon alpha alphaev6 sparc sparc64 sparcv9 sparcv9v sparc64v i164 mac sh mips geode
|
ARCHES = noarch i386 x86_64 aarch64 # i586 i686 ia64 s390 s390x ppc ppc64 pseries ppc64pseries iseries ppc64iseries athlon alpha alphaev6 sparc sparc64 sparcv9 sparcv9v sparc64v i164 mac sh mips geode
|
||||||
|
|
||||||
# for the modules that do different "make prep" depending on what arch we build for
|
# for the modules that do different "make prep" depending on what arch we build for
|
||||||
PREP_ARCHES = $(addprefix prep-,$(ARCHES))
|
PREP_ARCHES = $(addprefix prep-,$(ARCHES))
|
||||||
|
Loading…
Reference in New Issue
Block a user