Tweak "mkws-html-includes" rule to omit NUL characters.
authorMike Taylor <mike@indexdata.com>
Wed, 23 Jul 2014 14:35:36 +0000 (15:35 +0100)
committerMike Taylor <mike@indexdata.com>
Wed, 23 Jul 2014 14:35:36 +0000 (15:35 +0100)
tools/htdocs/Makefile

index f0a7291..420bb49 100644 (file)
@@ -97,7 +97,7 @@ mkws.js: $(COMPONENTS) Makefile
 
 mkws-html-includes: 
        echo $(COMPONENTS) | perl -npe "s,${SRC},,g; s/\s+/\0/g" | \
-         perl -n0e 'print qq{    <script type="text/javascript" src="src$$_"></script>\n}'
+         perl -n0e 'chomp(); print qq{    <script type="text/javascript" src="src$$_"></script>\n}'
 
 distclean: clean
        @echo "(No need for distclean, 'make clean' is fine)"