fix: read more than one line from configuration file

Previously only the first line of the configuration file (without a
comment) was applied during build.
Thus `DF_IGNORE_FILESYSTEM_REGEX` was previously ignored.

Reported and fixed by Tobias Meyer, thanks!
This commit is contained in:
Lars Kruse 2021-07-14 13:17:27 +02:00
parent 954395aece
commit 1f147fcb1c

View file

@ -18,7 +18,7 @@ $(TARGET_FILE): $(INPUT_FILE) $(PLUGIN_FILES) $(CONFIGURATION_FILE)
echo "Adding plugin $$(basename "$$plugin_filename")"; done echo "Adding plugin $$(basename "$$plugin_filename")"; done
@export VERSION="$(VERSION)"; \ @export VERSION="$(VERSION)"; \
export "PLUGINS=$(PLUGINS)"; \ export "PLUGINS=$(PLUGINS)"; \
export CONF=$$(grep -v '^#' "$(CONFIGURATION_FILE)"); \ export CONF="$$(grep -v '^#' "$(CONFIGURATION_FILE)")"; \
export PLSTR="$$(grep -vh '^[ \t]*#' $(PLUGIN_FILES))"; \ export PLSTR="$$(grep -vh '^[ \t]*#' $(PLUGIN_FILES))"; \
perl -p -e '\ perl -p -e '\
s/\@\@VERSION\@\@/$$ENV{"VERSION"}/; \ s/\@\@VERSION\@\@/$$ENV{"VERSION"}/; \