[balsa] Use glib-genmarshal --header --body



commit 98ebeeeb97e8799ef114de3fed7f50a77df25b3c
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Sep 20 11:26:56 2017 -0400

    Use glib-genmarshal --header --body
    
        Use 'glib-genmarshal --header --body' to generate marshal.c
        files, instead of catting a header line to the file
    
        * libbalsa/imap/meson.build:
        * libbalsa/meson.build:

 ChangeLog                 |    8 ++++++++
 libbalsa/imap/meson.build |    4 ++--
 libbalsa/meson.build      |    2 +-
 3 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 615e452..ddca3a6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2017-09-20  Peter Bloomfield  <pbloomfield bellsouth net>
 
+       Use 'glib-genmarshal --header --body' to generate marshal.c
+       files, instead of catting a header line to the file
+
+       * libbalsa/imap/meson.build:
+       * libbalsa/meson.build:
+
+2017-09-20  Peter Bloomfield  <pbloomfield bellsouth net>
+
        Do not include internal dependencies in declare_dependency()
 
        * libbalsa/imap/meson.build:
diff --git a/libbalsa/imap/meson.build b/libbalsa/imap/meson.build
index 88eb9fb..eb6345c 100644
--- a/libbalsa/imap/meson.build
+++ b/libbalsa/imap/meson.build
@@ -52,12 +52,12 @@ libimap_marshal_c = custom_target('libimap_marshal_c',
   output  : 'libimap-marshal.c',
   command : [
     'sh', '-c',
-    'echo \'#include "libimap-marshal.h"\' > libbalsa/imap/libimap-marshal.c && ' +
     glib_genmarshal +
+    ' --header' +
     ' --body' +
     ' --prefix=libimap' +
     ' @INPUT@' +
-    ' >> libbalsa/imap/libimap-marshal.c'
+    ' > libbalsa/imap/libimap-marshal.c'
   ]
 )
 
diff --git a/libbalsa/meson.build b/libbalsa/meson.build
index 6026838..cf9d010 100644
--- a/libbalsa/meson.build
+++ b/libbalsa/meson.build
@@ -168,7 +168,7 @@ libbalsa_marshal_c = custom_target('libbalsa_marshal_c',
     ' --body' +
     ' --prefix=libbalsa' +
     ' @INPUT@' +
-    ' >> libbalsa/libbalsa-marshal.c'
+    ' > libbalsa/libbalsa-marshal.c'
   ]
 )
 


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