Index: find-xsl.py =================================================================== --- find-xsl.py (revision 18387) +++ find-xsl.py (working copy) @@ -26,6 +26,13 @@ print "XSL directory %s already exists" % (xsl_dir,) sys.exit(0) +# Check for Gentoo OS +if os.path.exists('/usr/lib/portage/bin'): + import re + for a in os.listdir('/usr/share/sgml/docbook'): + if re.search('xsl-stylesheets-\d+\.\d+\.\d+',a): + candidate_xsldirs = candidate_xsldirs + ('/usr/share/sgml/docbook/' + a,) + for i in candidate_xsldirs: if os.path.exists(os.path.join(i, 'html', 'docbook.xsl')): os.symlink(i, xsl_dir)