ó x”ţfc@s\ddlZddlZddlZddlZd„Zd„ZedkrXeƒndS(i˙˙˙˙NcCsŐyJtjtjddƒ\}}t|ƒdkrItjddƒ‚nWn9tjk r…}tjt_|GHdGHtjdƒnX|d|d}}t j |ƒ}x$|D]}t j j |t|ƒqąWdS(Nitisnot enough argumentss(usage: findlinksto pattern directory ...i(tgetopttsystargvtlent GetoptErrortNonetstderrtstdouttexittretcompiletostpathtwalktvisit(toptstargstmsgtpattdirstprogtdirname((s1/usr/lib64/python2.7/Tools/scripts/findlinksto.pytmain s  cCs´tjj|ƒrg|(dStjj|ƒr;dG|GHnxr|D]j}tjj||ƒ}y8tj|ƒ}|j|ƒdk r”|GdG|GHnWqBtjk rŤqBXqBWdS(Ns descend intos->( R R tislinktismounttjointreadlinktsearchRterror(RRtnamestnametlinkto((s1/usr/lib64/python2.7/Tools/scripts/findlinksto.pyRs  t__main__(R RR RRRt__name__(((s1/usr/lib64/python2.7/Tools/scripts/findlinksto.pyts