summaryrefslogtreecommitdiff
path: root/giscanner/annotationmain.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-09-24 15:41:24 -0300
committerJohan Dahlin <johan@gnome.org>2010-09-24 16:06:54 -0300
commit4fd326d0dc1935be6e5ecb293fd157f9349d53aa (patch)
tree37c1e01aa80b496681db448f14b4eb1bce3ff90f /giscanner/annotationmain.py
parent7cc31be7753b124b7f17febbbe0607765b426fa0 (diff)
downloadgobject-introspection-4fd326d0dc1935be6e5ecb293fd157f9349d53aa.tar.gz
Add a script to extract gio annotations
Diffstat (limited to 'giscanner/annotationmain.py')
-rw-r--r--giscanner/annotationmain.py23
1 files changed, 8 insertions, 15 deletions
diff --git a/giscanner/annotationmain.py b/giscanner/annotationmain.py
index d6e2eef5..b69577e9 100644
--- a/giscanner/annotationmain.py
+++ b/giscanner/annotationmain.py
@@ -56,23 +56,16 @@ def annotation_main(args):
if options.extract:
ap = AnnotationParser()
blocks = ap.parse(ss.get_comments())
+ print '/' + ('*' * 60) + '/'
+ print '/* THIS FILE IS GENERATED DO NOT EDIT */'
+ print '/' + ('*' * 60) + '/'
+ print
for block in blocks.values():
print block.to_gtk_doc()
print
- elif options.validate:
- transformer = create_transformer(namespace, options)
- transformer.parse(ss.get_symbols())
-
- shlibs = create_binary(transformer, options, args)
-
- ap = AnnotationParser()
- blocks = ap.parse(ss.get_comments())
-
- main = MainTransformer(transformer, blocks)
- main.transform()
-
- final = IntrospectablePass(transformer)
- final.validate()
-
+ print
+ print '/' + ('*' * 60) + '/'
+ print '/* THIS FILE IS GENERATED DO NOT EDIT */'
+ print '/' + ('*' * 60) + '/'
return 0