Makefile: fix processing of default environment file
authorSamuel Mescoff <samuel@mescoff.fr>
Mon, 15 Apr 2019 10:28:26 +0000 (12:28 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 6 Mar 2020 20:15:20 +0000 (14:15 -0600)
Allow the default environment file to contain long lines split into
multiples lines.

Leading white spaces can be added for readability as well.

Signed-off-by: Samuel Mescoff <samuel@mescoff.fr>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Makefile

index 55aa90cf17fa111e7c9adcf7dbf5ec75afeaa5bd..07539ca5968633219bbe4fc39405e65f18d6bf63 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1830,7 +1830,7 @@ define filechk_defaultenv.h
        (grep -v '^#' | \
         grep -v '^$$' | \
         tr '\n' '\0' | \
-        sed -e 's/\\\x0/\n/g' | \
+        sed -e 's/\\\x0\s*//g' | \
         xxd -i ; echo ", 0x00" ; )
 endef