[libnma/lr/nma-ws: 2/8] build/gtk4: ignore garbage before GtkBuilder xml



commit ca82b82b4785052e5cae27e096289b7873a4a5bd
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Thu Oct 31 09:13:16 2019 +0100

    build/gtk4: ignore garbage before GtkBuilder xml
    
    This is fixed in git snapshot of Gtk and will need to go away at some
    point.

 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/Makefile.am b/Makefile.am
index 935e0c7c..2ff7dbc7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -252,7 +252,7 @@ src/libnma-gtk4/nma-resources.c: src/nma.gresource.xml $(shell $(GLIB_COMPILE_RE
 
 src/libnma-gtk4/%.ui: src/%.ui
        @mkdir -p $(builddir)/src/libnma-gtk4
-       gtk4-builder-tool simplify --3to4 $< >$@
+       gtk4-builder-tool simplify --3to4 $< |awk '/^</ {xml=1} {if (xml) print; else print >"/dev/stderr"}' 
$@
 
 CLEANFILES += \
        $(libnma_h_priv_gen) \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]