mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
projects-dir.mk: Implement niftier fallback for undefined JANWARE_USER
Take JANWARE_USER from CVS/Root if it's there Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
09edf15ea8
commit
f086a9b18a
1 changed files with 7 additions and 1 deletions
|
|
@ -60,8 +60,14 @@ endif
|
|||
BUILD_PROJECTS = $(filter-out $(EXCLUDE_FROM_BUILD),$(PROJECTS))
|
||||
|
||||
ifndef JANWARE_USER
|
||||
export JANWARE_USER = $(shell id -un)
|
||||
ifneq ($(wildcard CVS/Root),)
|
||||
JANWARE_USER = $(shell sed '/^:ext/ !d; s/:ext:\([^@]\+\)@.*/\1/' CVS/Root)
|
||||
$(info Taking JANWARE_USER=$(JANWARE_USER) from CVS/Root)
|
||||
else
|
||||
JANWARE_USER = $(shell id -un)
|
||||
endif
|
||||
$(warning Assuming JANWARE_USER=$(JANWARE_USER), explicitly set environment variable to turn off this warning!)
|
||||
export JANWARE_USER
|
||||
endif
|
||||
|
||||
ifeq ($(JANWARE_USER),)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue