ó LzńWc@sbdZddlZddlmZmZddlmZddlmZdefd„ƒYZdS(s Dependency analysis for the xr package. The xr package allows one to put references in one document to other (external) LaTeX documents. It works by reading the external document's .aux file, so this support package registers these files as dependencies. i˙˙˙˙N(t_tmsg(t TexModule(tLatextModulecBseZd„Zd„ZRS(cCsn||_|j|_g|_x3dD]+}|jj|ƒr%|jj|ƒq%q%W|jjd|jƒdS(Ntpdftextxetextexternaldocument(RR( tdoctenvt texmodulestmodulesthas_keytappendtparsertadd_hookR(tselfRtdicttm((sD/usr/lib/python2.7/dist-packages/dbtexmf/dblatex/grubber/xr-hyper.pyt__init__s    cCsú|dd}|dd}tjj|ƒsOtjtdƒ|ddƒdSt|jƒ}|j|ƒ|j j |_ |j j |_ t |_ x!|jD]}|jj|ƒqœW|jddgƒ||j j| s