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



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

    libtracker-sparql: (introspection) 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 037b082..271660b 100644
--- a/src/libtracker-sparql/Makefile.am
+++ b/src/libtracker-sparql/Makefile.am
@@ -77,8 +77,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]