Also filter lines with only spaces in apps/features. At least mr500 had those after the preprocessing step.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23245 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Frank Gevaerts 2009-10-18 14:24:25 +00:00
parent 735b522929
commit 1c64a4d3e0

View file

@ -23,7 +23,7 @@ features $(BUILDDIR)/apps/features $(BUILDDIR)/apps/genlang-features: $(APPSDIR)
$(call PRINTS,PP $(<F)) $(call PRINTS,PP $(<F))
$(SILENT)$(CC) $(PPCFLAGS) \ $(SILENT)$(CC) $(PPCFLAGS) \
-E -P -imacros "config.h" -imacros "button.h" -x c $< | \ -E -P -imacros "config.h" -imacros "button.h" -x c $< | \
grep -v "^\#" | grep -v "^$$" > $(BUILDDIR)/apps/features; \ grep -v "^\#" | grep -v "^ *$$" > $(BUILDDIR)/apps/features; \
for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done ; \ for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done ; \
echo "$$feat" >$(BUILDDIR)/apps/genlang-features echo "$$feat" >$(BUILDDIR)/apps/genlang-features