From 1ec376b906c3ad9b87f287def4682caed3bb39ec Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 30 Dec 2017 08:15:55 +0100 Subject: [PATCH] - image-update.mk: cleanup settings-xml's from non-printable chars --- make/image-update.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/make/image-update.mk b/make/image-update.mk index 6c10a467..d7476e67 100644 --- a/make/image-update.mk +++ b/make/image-update.mk @@ -184,6 +184,14 @@ pathauf_HD-19: install -m755 $(IMAGEFILES)/channellists/update-ctrl/postinstall.sh $(POSTINSTALL_SH) mkdir -pv $(UPDATE_INST_DIR)/var/tuxbox/config/zapit && \ cp -f $(IMAGEFILES)/channellists/$@/* $(UPDATE_INST_DIR)/var/tuxbox/config/zapit/ + # remove non-printable chars and re-format xml-files + cd $(UPDATE_INST_DIR)/var/tuxbox/config/zapit/; \ + for file in *.xml; do \ + sed -i 's/[^[:print:]]//g' $$file; \ + XMLLINT_INDENT=" " \ + xmllint --format $$file > _$$file; \ + mv _$$file $$file; \ + done # # we should try to keep this array table up-to-date ;-) #