ó x”žfc@soddlZddlZddlTejjZdZd Zd„Zd„Zd„Z e d krke ƒndS( i’’’’N(t*s mkreal errori icCsœtj|ƒ}t|tƒ}tj|ƒ}t|dƒ}tj|ƒt|dƒ}x)|jtƒ}|suPn|j |ƒq\~tj ||ƒdS(Ntrtw( toststattS_IMODEtST_MODEtreadlinktopentunlinktreadtBUFSIZEtwritetchmod(tnametsttmodetlinktotf_intf_outtbuf((s,/usr/lib64/python2.7/Tools/scripts/mkreal.pyt mkrealfiles cCsĪtj|ƒ}t|tƒ}tj|ƒ}tj|ƒ}tj|ƒtj||ƒtj||ƒt tj |ƒ}xK|D]C}|tj tj fkrƒtj t ||ƒt ||ƒƒqƒqƒWdS(N( RRRRRtlistdirR tmkdirR tjointpardirtcurdirtsymlink(RRRRtfilestfilename((s,/usr/lib64/python2.7/Tools/scripts/mkreal.pyt mkrealdirs  cCsėtjt_tjjtjdƒ}|dkr:d}ntjd}|sjdG|GdGHtjdƒnd}xg|D]_}tjj|ƒs­|dG|dGd GHd}qwtjj |ƒrĢt |ƒqwt |ƒqwWtj|ƒdS( Nis-ctmkrealisusage:spath ...it:s not a symlink( tsyststderrtstdoutRtpathtbasenametargvtexittislinktisdirRR(tprognametargststatusR((s,/usr/lib64/python2.7/Tools/scripts/mkreal.pytmain-s"       t__main__i€( R!RRR$RterrorR RRR-t__name__(((s,/usr/lib64/python2.7/Tools/scripts/mkreal.pyts