mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
project-dirs.mk / pgit.sh: Add support for offlining projects
This adds support for the variable OFFLINE_PROJECTS in projects-dir.mk and the PGIT_IGNORE environment variable. Both go hand in hand and do what their names insinuate. OFFLINE_PROJECTS is initialized from EXCLUDE_FROM_BUILD, which in turn is initialized from exclude.txt and friends. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
fab119fca9
commit
5e9168480a
2 changed files with 9 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ EXCLUDES_FILES = $(wildcard exclude-$(shell $(GET_OS_SH) name 2>/d
|
|||
ifneq ($(EXCLUDES_FILES),)
|
||||
EXCLUDE_FROM_BUILD += $(shell sed 's/\#.*//g' $(EXCLUDES_FILES))
|
||||
endif
|
||||
OFFLINE_PROJECTS ?= $(EXCLUDE_FROM_BUILD)
|
||||
|
||||
TEXT_FILES_CACHE ?= text-files.txt
|
||||
|
||||
|
|
@ -99,6 +100,10 @@ else
|
|||
export PGIT_CLONE_FROM_USER = $(JANWARE_USER)
|
||||
endif
|
||||
|
||||
ifneq ($(OFFLINE_PROJECTS),)
|
||||
export PGIT_IGNORE = $(OFFLINE_PROJECTS)
|
||||
endif
|
||||
|
||||
ifneq ($(EXCLUDE_FROM_BUILD),)
|
||||
PROJECTS_PY_EXTRA_BUILD_OPTS += --exclude "$(EXCLUDE_FROM_BUILD)"
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue