[libsocialweb] vala: Make sure the namespace is SocialWebClient and not Sw



commit 0037d65b86b8b61ef0cf0987cc7c32aeabe6c219
Author: Marco Barisione <marco barisione org>
Date:   Fri Dec 17 15:09:47 2010 +0000

    vala: Make sure the namespace is SocialWebClient and not Sw
    
    Recent vapigen versions seems to think that the namespace should be Sw,
    despite the .gir file saying that the namespace is SocialWebClient.

 vala/Makefile.am |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/vala/Makefile.am b/vala/Makefile.am
index a417d6c..389927c 100644
--- a/vala/Makefile.am
+++ b/vala/Makefile.am
@@ -19,8 +19,10 @@ libsocialweb-client.vapi: $(top_builddir)/libsocialweb-client/SocialWebClient-0.
 		$< \
 		$(NULL)
 	@mv $@ libsocialweb-client.vapi.tmp
-	$(AM_V_GEN)sed -e \
-		's/SocialWebClient-0.25.h/libsocialweb-client\/libsocialweb-client-hack-for-vala.h/' \
+	$(AM_V_GEN)sed \
+		'-e s/SocialWebClient-0.25.h/libsocialweb-client\/libsocialweb-client-hack-for-vala.h/' \
+		'-e s/namespace Sw/namespace SocialWebClient/' \
+		'-e s/Sw\./SocialWebClient./g' \
 		< libsocialweb-client.vapi.tmp > $@
 	@rm libsocialweb-client.vapi.tmp
 



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