Original commit message from CVS:
* common/gst-xmlinspect.py:
* common/gtk-doc-plugins.mak:
only inspect plugins for this given package
require gst-python 0.9
import sys
import os
+import pygst
+pygst.require('0.9')
import gst
INDENT_SIZE = 2
return offset + ("\n" + offset).join(block.split("\n"))
def main():
- if sys.argv[1]:
- os.chdir(sys.argv[1])
+ if len(sys.argv) == 1:
+ sys.stderr.write("Please specify a source module to inspect")
+ sys.exit(1)
+ source = sys.argv[1]
+
+ if len(sys.argv) > 2:
+ os.chdir(sys.argv[2])
all = gst.registry_pool_plugin_list()
for plugin in all:
+ if plugin.get_source() != source:
+ continue
+
filename = "plugin-%s.xml" % plugin.get_name()
handle = open(filename, "w")
handle.write(output_plugin(plugin))
# IFF the output changed; see gtkdoc-mktmpl
inspect-build.stamp: inspect
$(INSPECT_ENVIRONMENT) $(PYTHON) \
- $(top_srcdir)/common/gst-xmlinspect.py inspect
+ $(top_srcdir)/common/gst-xmlinspect.py $(PACKAGE) inspect
$(INSPECT_ENVIRONMENT) $(PYTHON) \
$(top_srcdir)/common/mangle-tmpl.py tmpl
echo -n "timestamp" > inspect.stamp