subtree.mk: Files were RPM-shipped with development user id

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2019-05-16 15:39:27 +00:00
commit bdeb2be59b

View file

@ -1,22 +1,22 @@
ifeq ($(DEVELOPMENT),false)
SUBTREE_OWNER ?= root
SUBTREE_GROUP ?= root
SUBTREE_MODE ?= 0644
SUBTREE_DIROWNER ?= root
SUBTREE_DIRGROUP ?= root
SUBTREE_DIRMODE ?= 0755
ifneq ($(DEVELOPMENT),true)
SUBTREE_OWNER ?= root
SUBTREE_GROUP ?= root
SUBTREE_MODE ?= 0644
SUBTREE_DIROWNER ?= root
SUBTREE_DIRGROUP ?= root
SUBTREE_DIRMODE ?= 0755
else
SUBTREE_OWNER ?= $(shell id -un)
SUBTREE_GROUP ?= $(shell id -gn)
SUBTREE_MODE ?= 0644
SUBTREE_DIROWNER ?= $(shell id -un)
SUBTREE_DIRGROUP ?= $(shell id -gn)
SUBTREE_DIRMODE ?= 0755
SUBTREE_INSTALL_PREFIX ?= /srv/www/proj/$(PROJECT)
SUBTREE_OWNER ?= $(shell id -un)
SUBTREE_GROUP ?= $(shell id -gn)
SUBTREE_MODE ?= 0644
SUBTREE_DIROWNER ?= $(shell id -un)
SUBTREE_DIRGROUP ?= $(shell id -gn)
SUBTREE_DIRMODE ?= 0755
SUBTREE_INSTALL_PREFIX ?= /srv/www/proj/$(PROJECT)
endif
#ifeq ($(SUBTREE_SRC),)
#SUBTREE_SRC = $(shell find .)
# SUBTREE_SRC = $(shell find .)
#endif
SUBTREE_DIRS += $(shell for f in `git ls-files . 2>/dev/null || find | sed 's%/[^/]\+$$%%' | sort -u | grep -v "Makefile\|GNUmakefile"`; do if [ -d "$$f" ]; then echo $$f; fi; done)