fontconfig: Branch 'master'

[email protected] (Akira TAGOH) Wed, 1 Aug 2018 08:11:05 +0000 (UTC)
Newsgroups gmane.comp.fonts.fontconfig
Message-ID <[email protected]>
 src/Makefile.am |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a1efb5ea8c76622c7587cb5362e821bff8dcd7c4
Author: Akira TAGOH <[email protected]>
Date:   Wed Aug 1 08:10:35 2018 +0000

    Fix the build issue with gperf
    
    GPerf seems not allowing the empty lines though, current recipes are supposed to drop them.
    but seems not working on some env.
    So taking the proper way to do that instead of incompatible things against platforms.

diff --git a/src/Makefile.am b/src/Makefile.am
index 7a35575..7b414df 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -111,10 +111,10 @@ fcobjshash.gperf: Makefile stamp-fcobjshash.gperf
 stamp-fcobjshash.gperf: fcobjshash.gperf.h fcobjs.h
 	$(AM_V_GEN) $(CPP) -I$(top_srcdir) $(CPPFLAGS) $< | \
 	$(SED) 's/^ *//;s/ *, */,/' | \
-	$(GREP) '^[^#]' | \
 	awk ' \
 		/CUT_OUT_BEGIN/ { no_write=1; next; }; \
 		/CUT_OUT_END/ { no_write=0; next; }; \
+		/^$$/||/^#/ { next; }; \
 		{ if (!no_write) print; next; }; \
 	' - > [email protected] && \
 	mv -f [email protected] fcobjshash.gperf && touch $@ || ( $(RM) [email protected] && false )
_______________________________________________
Fontconfig mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/fontconfig