ó ^9õUc@s[ddlZddlZddlmZddlmZmZddlmZd„Z dS(iÿÿÿÿNi(t DocWriter(tgenerate_sections_filetwrite_sections_file(t Transformerc CsËtjdƒ}|jdddddddd ƒ|jd d dddd d dddƒ|jddddddd gddƒ|jddddddddƒ|j|ƒ\}}|jsÐtdƒ‚nt|ƒdkrñtdƒ‚ndtjkr8tjd}tjd}tj j |dƒ|g}ng}|j |j ƒt j|d|ƒ}|jr¥t|ƒ}t|jd ƒ}t||ƒ|jƒn"t||jƒ} | j|jƒd!S("Ns%prog [options] GIR-files-os--outputtactiontstoretdesttoutputthelpsDirectory to write output tos-ls --languagetlanguagetdefaulttcsOutput languagets--add-include-pathtappendt include_pathss!include paths for other GIR filess--write-sections-filet store_truetwrite_sectionss&Generate and write out a sections filesmissing output parameterisNeed an input GIR filenamet UNINSTALLED_INTROSPECTION_SRCDIRt"UNINSTALLED_INTROSPECTION_BUILDDIRtgiritwi(toptparset OptionParsert add_optiont parse_argsRt SystemExittlentostenvirontpathtjointextendRRtparse_from_girRRtopenRtcloseRR twrite( targstparsertoptionst top_srcdirt top_builddirtextra_include_dirst transformert sections_filetfptwriter((sq/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docmain.pytdoc_mainsD          ( RRt docwriterRt sectionparserRRR*RR.(((sq/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/docmain.pyts