summaryrefslogtreecommitdiff
path: root/misc/update-gobject-annotations.py
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-06-23 18:41:28 -0400
committerColin Walters <walters@verbum.org>2011-06-23 18:41:28 -0400
commit54adf28ba2f6f039c723648a097770479d086874 (patch)
tree395e891fb9000a67e164fe97ad9a19c112592836 /misc/update-gobject-annotations.py
parent158db28b46eb1e9b24705bf8e9c3e6ca69ae54b4 (diff)
downloadgobject-introspection-54adf28ba2f6f039c723648a097770479d086874.tar.gz
update-glib-annotations.py: Merge annotation extraction scripts
Diffstat (limited to 'misc/update-gobject-annotations.py')
-rwxr-xr-xmisc/update-gobject-annotations.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/misc/update-gobject-annotations.py b/misc/update-gobject-annotations.py
deleted file mode 100755
index 47bd1ed8..00000000
--- a/misc/update-gobject-annotations.py
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env python
-
-import os
-import sys
-
-if __name__ == '__main__':
- srcdir = sys.argv[1]
- sources = []
- projname = 'gobject'
- subdir = os.path.join(srcdir, projname)
- headersfile = os.path.join(subdir, projname + '-public-headers.txt')
- f = open(headersfile)
- line = f.read()
- f.close()
- for headername in line.split(' '):
- headername = headername.strip()
- sources.append(os.path.join(subdir, headername))
- for sourcename in os.listdir(subdir):
- if sourcename.endswith('.c'):
- sources.append(os.path.join(subdir, sourcename))
- os.execv('./g-ir-annotation-tool',
- ['./g-ir-annotation-tool', '--extract', '-DGOBJECT_COMPILATION',
- '-I' + srcdir,
- '-I' + os.path.join(srcdir, 'glib'),
- '-I' + os.path.join(srcdir, 'gobject'),
- '-I' + os.path.join(srcdir, 'gmodule')] + sources)