ó ú†ÁZc@`s›ddlmZddlmZddlmZddlmZddlZddlZddlmZddl m Z m Z dd l m Z d „ZdS( i(tabsolute_import(tdivision(tprint_function(tunicode_literalsNi(t DocWriter(tgenerate_sections_filetwrite_sections_file(t Transformerc C`s°tjƒ}|jdƒ|jdddddddd ƒ|jd d dddd d dddƒ|jddddddd gddƒ|jddddddddƒ|j|dƒ}|jsŘtdƒ‚ndtjkrtjd}tjd}tjj |dƒ|g}ng}|j |j ƒt j |j|ƒ}|jrŠt|ƒ}t|jdƒ}t||ƒWdQXn"t||jƒ}|j|jƒd S(!Nugirfileu-ou--outputtactionustoretdestuoutputthelpuDirectory to write output tou-lu --languageulanguagetdefaultucuOutput languageu-Iu--add-include-pathuappendu include_pathsu!include paths for other GIR filesu-su--write-sections-fileu store_trueuwrite_sectionsu&Generate and write out a sections fileiumissing output parameteru UNINSTALLED_INTROSPECTION_SRCDIRu"UNINSTALLED_INTROSPECTION_BUILDDIRugiruwi(targparsetArgumentParsert add_argumentt parse_argstoutputt SystemExittostenvirontpathtjointextendt include_pathsRtparse_from_girtgirfiletwrite_sectionsRtopenRRtlanguagetwrite( targstparsert top_srcdirt top_builddirtextra_include_dirst transformert sections_filetfptwriter((sk/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docmain.pytdoc_main"s@          (t __future__RRRRRR t docwriterRt sectionparserRRR#RR'(((sk/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docmain.pyts