]> granicus.if.org Git - graphviz/commitdiff
Revert "plugin/core: autotools: make awk crlf agnostic when generating ps.h"
authorEmden R. Gansner <erg@emdenrg.net>
Tue, 5 Oct 2021 21:01:02 +0000 (17:01 -0400)
committerEmden R. Gansner <erg@emdenrg.net>
Tue, 5 Oct 2021 21:01:02 +0000 (17:01 -0400)
This reverts commit 50e7d9768b9c02287a0d68e64233c7f713d1f4b8.

In standard awk, only the first character in RS is used, so regular expressions don't work. This means the resulting ps.h in plugins/core contains an illegal C string constant.

plugin/core/Makefile.am

index 3e72fc8ef9926dfc24dc121377668d2ce1856757..3cad8cc4f4bdb8266f3fb13f43a09a0d4380b619 100644 (file)
@@ -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) -v RS="\r*\n" -f $(top_srcdir)/awk/stringize.awk $(srcdir)/ps.txt > ps.h
+       $(AWK) -f $(top_srcdir)/awk/stringize.awk $(srcdir)/ps.txt > ps.h
 
 if WITH_WIN32
 libgvplugin_core_la_LDFLAGS += -no-undefined