From: Magnus Jacobsson Date: Sun, 22 Aug 2021 06:25:01 +0000 (+0200) Subject: plugin/core: autotools: make awk crlf agnostic when generating ps.h X-Git-Tag: 2.49.2~32^2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50e7d9768b9c02287a0d68e64233c7f713d1f4b8;p=graphviz plugin/core: autotools: make awk crlf agnostic when generating ps.h Fixes errors like this with Cygwin in a crlf environment even with SHELLOPTS=igncr: ps.h:2:1: error: missing terminating " character 2 | "%%BeginProlog ", | ^~~~~~~~~~~~~~ Although not shown in the error message, this line actually contained a carriage return after %%BeginProlog: "%%BeginProlog ", --- diff --git a/plugin/core/Makefile.am b/plugin/core/Makefile.am index 3cad8cc4f..3e72fc8ef 100644 --- a/plugin/core/Makefile.am +++ b/plugin/core/Makefile.am @@ -44,7 +44,7 @@ libgvplugin_core_la_LIBADD = $(top_builddir)/lib/gvc/libgvc.la \ gvrender_core_ps.o gvrender_core_ps.lo: ps.h ps.h : $(srcdir)/ps.txt - $(AWK) -f $(top_srcdir)/awk/stringize.awk $(srcdir)/ps.txt > ps.h + $(AWK) -v RS="\r*\n" -f $(top_srcdir)/awk/stringize.awk $(srcdir)/ps.txt > ps.h if WITH_WIN32 libgvplugin_core_la_LDFLAGS += -no-undefined