mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-16 04:23:31 +01:00
Everywhere: Replace "JW_BUILD" by "JW_PKG"
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
9217d38964
commit
f90f5aeebe
5 changed files with 30 additions and 30 deletions
|
|
@ -25,13 +25,13 @@ JWBDIR_NAME ?= jw-pkg
|
|||
JWBDIR_SEARCH_PATH ?= $(DEV_PROJECTS_DIR) $(BUILD_TOOLS_PREFIX)/opt/$(FLAVOUR_PATH_PREFIX)
|
||||
JWBDIR ?= $(firstword $(wildcard $(addsuffix /$(JWBDIR_NAME),$(JWBDIR_SEARCH_PATH))))
|
||||
|
||||
JW_BUILD_BINDIR = $(JWBDIR)/bin
|
||||
JWB_SCRIPT_DIR = $(firstword $(wildcard ./$(JWBDIR_NAME)/scripts $(JW_BUILD_BINDIR)) jwb-script-dir-not-found)
|
||||
JW_BUILD_REMOTE_BINDIR = /opt/jw-pkg/bin
|
||||
JW_PKG_BINDIR = $(JWBDIR)/bin
|
||||
JWB_SCRIPT_DIR = $(firstword $(wildcard ./$(JWBDIR_NAME)/scripts $(JW_PKG_BINDIR)) jwb-script-dir-not-found)
|
||||
JW_PKG_REMOTE_BINDIR = /opt/jw-pkg/bin
|
||||
|
||||
SHELL = /bin/bash -o pipefail +H
|
||||
PROJECTS_TXT ?= projects.txt
|
||||
JW_BUILD_VERBOSE ?= false
|
||||
JW_PKG_VERBOSE ?= false
|
||||
BASE_PKGS = git make sudo time xdg-utils python3
|
||||
PREREQ_RELEASE ?= pull
|
||||
ifneq ($(JANWARE_USER),)
|
||||
|
|
@ -54,16 +54,16 @@ else
|
|||
PROJECTS ?= $(shell ls -d */GNUmakefile */Makefile 2>/dev/null | sed 's%/[^/]*%%' | sort -u)
|
||||
endif
|
||||
|
||||
ifeq ($(JW_BUILD_VERBOSE),true)
|
||||
ifeq ($(JW_PKG_VERBOSE),true)
|
||||
SSH_WRAPPER_TRACE ?= -x
|
||||
endif
|
||||
|
||||
export JW_BUILD_VERBOSE
|
||||
export JW_PKG_VERBOSE
|
||||
|
||||
# ------------ external programs I
|
||||
|
||||
CWD := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||
GET_OS_SH = /bin/bash $(firstword $(wildcard $(JWB_SCRIPT_DIR)/get-os.sh $(JW_BUILD_BINDIR)/get-os.sh) get-os-sh-not-found)
|
||||
GET_OS_SH = /bin/bash $(firstword $(wildcard $(JWB_SCRIPT_DIR)/get-os.sh $(JW_PKG_BINDIR)/get-os.sh) get-os-sh-not-found)
|
||||
SSH_WRAPPER_SH := $(CWD)/ssh-wrapper.sh
|
||||
|
||||
EXCLUDES_FILE ?= exclude.txt
|
||||
|
|
@ -82,18 +82,18 @@ else
|
|||
UNAVAILABLE_TARGETS ?=
|
||||
endif
|
||||
|
||||
ifneq ($(origin JW_BUILD_SSH),undefined)
|
||||
export GIT_SSH := $(JW_BUILD_SSH)
|
||||
ifneq ($(origin JW_PKG_SSH),undefined)
|
||||
export GIT_SSH := $(JW_PKG_SSH)
|
||||
else
|
||||
export GIT_SSH := $(SSH_WRAPPER_SH)
|
||||
endif
|
||||
|
||||
ifeq ($(filter pkg-%,$(MAKECMDGOALS)),)
|
||||
JW_BUILD_SSH_EXTRA_OPTS += -o StrictHostKeyChecking=no -o ControlMaster=auto -o ControlPath=/tmp/%r@jw-pkg:%h:%p -o ControlPersist=3m
|
||||
JW_PKG_SSH_EXTRA_OPTS += -o StrictHostKeyChecking=no -o ControlMaster=auto -o ControlPath=/tmp/%r@jw-pkg:%h:%p -o ControlPersist=3m
|
||||
ifneq ($(JANWARE_USER),)
|
||||
JW_BUILD_SSH_EXTRA_OPTS += -l $(JANWARE_USER)
|
||||
JW_PKG_SSH_EXTRA_OPTS += -l $(JANWARE_USER)
|
||||
endif
|
||||
export JW_BUILD_SSH_EXTRA_OPTS
|
||||
export JW_PKG_SSH_EXTRA_OPTS
|
||||
endif
|
||||
|
||||
ifneq ($(EXCLUDE_FROM_BUILD),)
|
||||
|
|
@ -135,11 +135,11 @@ ifneq ($(origin PROJECTS_DIR_REMOTE_BASE),undefined)
|
|||
PGIT_SH += --remote-base $(PROJECTS_DIR_REMOTE_BASE)
|
||||
endif
|
||||
|
||||
PURGE_SH = /bin/bash $(firstword $(wildcard $(JWB_SCRIPT_DIR)/purge-stale-projects.sh $(JW_BUILD_BINDIR)/purge-stale-projects.sh) purge-not-found)
|
||||
PKG_MANAGER_SH ?= /bin/bash $(firstword $(wildcard $(JWB_SCRIPT_DIR)/pkg-manager.sh $(JW_BUILD_BINDIR)/pkg-manager.sh) pkg-manager-not-found)
|
||||
CREATE_PROJECT_SH ?= /bin/bash $(firstword $(wildcard $(JWB_SCRIPT_DIR)/jw-pkg-create-project.sh $(JW_BUILD_BINDIR)/jw-pkg-create-project.sh) jw-pkg-create-project-not-found)
|
||||
LIST_VCS_FILES_SH = /bin/bash $(firstword $(wildcard $(JWB_SCRIPT_DIR)/scm.sh $(JW_BUILD_BINDIR)/scm.sh) scm-sh-not-found) ls-files
|
||||
GIT_SRV_ADMIN_SH = JW_BUILD_SSH_EXTRA_OPTS="$(JW_BUILD_SSH_EXTRA_OPTS)" $(GIT_SSH) $(JANWARE_USER)@git.janware.com $(JW_BUILD_REMOTE_BINDIR)/git-srv-admin.sh
|
||||
PURGE_SH = /bin/bash $(firstword $(wildcard $(JWB_SCRIPT_DIR)/purge-stale-projects.sh $(JW_PKG_BINDIR)/purge-stale-projects.sh) purge-not-found)
|
||||
PKG_MANAGER_SH ?= /bin/bash $(firstword $(wildcard $(JWB_SCRIPT_DIR)/pkg-manager.sh $(JW_PKG_BINDIR)/pkg-manager.sh) pkg-manager-not-found)
|
||||
CREATE_PROJECT_SH ?= /bin/bash $(firstword $(wildcard $(JWB_SCRIPT_DIR)/jw-pkg-create-project.sh $(JW_PKG_BINDIR)/jw-pkg-create-project.sh) jw-pkg-create-project-not-found)
|
||||
LIST_VCS_FILES_SH = /bin/bash $(firstword $(wildcard $(JWB_SCRIPT_DIR)/scm.sh $(JW_PKG_BINDIR)/scm.sh) scm-sh-not-found) ls-files
|
||||
GIT_SRV_ADMIN_SH = JW_PKG_SSH_EXTRA_OPTS="$(JW_PKG_SSH_EXTRA_OPTS)" $(GIT_SSH) $(JANWARE_USER)@git.janware.com $(JW_PKG_REMOTE_BINDIR)/git-srv-admin.sh
|
||||
|
||||
# ------------ projects to be built
|
||||
|
||||
|
|
@ -357,7 +357,7 @@ git-commit:
|
|||
# --- rules
|
||||
|
||||
$(SSH_WRAPPER_SH): $(PROJECTS_MAKEFILE_NAME)
|
||||
/bin/echo -e '#!/bin/bash $(SSH_WRAPPER_TRACE)\n\nexec /usr/bin/ssh $$JW_BUILD_SSH_EXTRA_OPTS "$$@"' > $@.tmp
|
||||
/bin/echo -e '#!/bin/bash $(SSH_WRAPPER_TRACE)\n\nexec /usr/bin/ssh $$JW_PKG_SSH_EXTRA_OPTS "$$@"' > $@.tmp
|
||||
chmod 700 $@.tmp
|
||||
mv $@.tmp $@
|
||||
ssh-wrapper: $(SSH_WRAPPER_SH)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue