projects-dir.mk: Improved usage of projects.txt

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2014-03-21 12:35:28 +00:00
commit c11e37ae39

View file

@ -1,9 +1,10 @@
CVS_PROJECTS = $(dir $(wildcard */CVS))
ifneq ($(wildcard projects.txt),)
PROJECTS = $(shell cat projects.txt | sed '/^ *#/ d')
PROJECTS = $(shell cat projects.txt | sed '/^ *\#/ d')
# TODO: this could be nicer
CVS_PROJECTS = $(PROJECTS)
else
PROJECTS = fill me
PROJECTS = $(dir $(wildcard */CVS */.git))
CVS_PROJECTS = $(dir $(wildcard */CVS))
endif
WHOAMI = $(shell id -un)