]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add '\n' to the end of each line when generating xsl.c
authorMark Andrews <marka@isc.org>
Fri, 22 Oct 2021 06:00:39 +0000 (17:00 +1100)
committerMark Andrews <marka@isc.org>
Tue, 2 Nov 2021 11:18:45 +0000 (11:18 +0000)
This makes the bind9.xml more readable in a browser when debugging
and also ensures that the file is properly terminated in the HTTP
transaction.

bin/named/Makefile.am

index 87e60ddcd5912f1193922f424fbedf8308b64a71..7065a90b7a35a31084fc4208909d421ad77ba796 100644 (file)
@@ -47,7 +47,7 @@ xsl.c: bind9.xsl Makefile
        (echo 'const char xslmsg[] =' &&        \
         $(SED) -e 's,\",\\\",g'                \
                -e 's,^,\",'                    \
-               -e 's,$$,\",' &&                \
+               -e 's,$$,\\n\",' &&             \
         echo ";")                              \
        < "${srcdir}/bind9.xsl" > $@