summaryrefslogtreecommitdiff
path: root/tools/generate.c
diff options
context:
space:
mode:
authorColin Walters <walters@src.gnome.org>2008-10-16 13:16:30 +0000
committerColin Walters <walters@src.gnome.org>2008-10-16 13:16:30 +0000
commit873956389ee7b95d99a6bf7ec9063534c57ad323 (patch)
tree81be144fce00ce0e248b61b9d0ffcd87222957ba /tools/generate.c
parent8618891a62870acd3c9fef63150fa6784cccc196 (diff)
downloadgobject-introspection-873956389ee7b95d99a6bf7ec9063534c57ad323.tar.gz
Fix up g-ir-generate for new include= syntax
svn path=/trunk/; revision=726
Diffstat (limited to 'tools/generate.c')
-rw-r--r--tools/generate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/generate.c b/tools/generate.c
index 7493f657..74dd41a0 100644
--- a/tools/generate.c
+++ b/tools/generate.c
@@ -1168,9 +1168,11 @@ write_repository (const char *namespace,
{
for (i = 0; dependencies[i]; i++)
{
+ char **parts = g_strsplit (dependencies[i], "-", 2);
xml_start_element (xml, "include");
- xml_printf (xml, " name=\"%s\"", dependencies[i]);
+ xml_printf (xml, " name=\"%s\" version=\"%s\"", parts[0], parts[1]);
xml_end_element (xml, "include");
+ g_strfreev (parts);
}
}