From 50e7d9768b9c02287a0d68e64233c7f713d1f4b8 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sun, 22 Aug 2021 08:25:01 +0200 Subject: [PATCH] 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 ", --- plugin/core/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0