[tracker/introspection: 14/19] libtracker-sparql: Another sed trick to fix vala GIR



commit f7fae822d43503fc406c7fa2ae63339e50a73c5b
Author: Ivan Frade <ivan frade nokia com>
Date:   Tue Mar 29 13:39:06 2011 +0300

    libtracker-sparql: Another sed trick to fix vala GIR
    
    Add scope="true" to all the async function descriptions.

 src/libtracker-sparql/Makefile.am |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-sparql/Makefile.am b/src/libtracker-sparql/Makefile.am
index 778363f..346a492 100644
--- a/src/libtracker-sparql/Makefile.am
+++ b/src/libtracker-sparql/Makefile.am
@@ -68,8 +68,12 @@ Tracker- TRACKER_API_VERSION@.gir: $(lib_LTLIBRARIES) Makefile
 else
 Tracker- TRACKER_API_VERSION@.gir: $(lib_LTLIBRARIES) Makefile
 	if [[ -z `grep tracker_sparql_escape_uri_vprintf $@ |grep introspectable` ]] ; then \
-	  sed -i $@ -e "s/c\:identifier\=\"tracker_sparql_escape_uri_vprintf\"/c\:identifier\=\"tracker_sparql_escape_uri_vprintf\"\ introspectable=\"0\"/g" ; \
+	  sed -i $@ -e "s/c\:identifier\=\"tracker_sparql_escape_uri_vprintf\"/&\ introspectable=\"0\"/g" ; \
         fi
+	if [[ -z `grep scope $ ` ]] ; then \
+	  sed -i $@ -e "s/\"_callback_\"/&\ scope=\"async\"/g" ; \
+        fi
+
 endif
 
 Tracker- TRACKER_API_VERSION@.typelib: Tracker-$(TRACKER_API_VERSION).gir



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