def generate(env):
    """Add Builders and construction variables for docbook to an Environment."""

    env.SetDefault(
        # Default names for customized XSL stylesheets
        DOCBOOK_DEFAULT_XSL_EPUB = '',
        DOCBOOK_DEFAULT_XSL_HTML = '',
        DOCBOOK_DEFAULT_XSL_HTMLCHUNKED = '',
        DOCBOOK_DEFAULT_XSL_HTMLHELP = '',
        DOCBOOK_DEFAULT_XSL_PDF = '',
        DOCBOOK_DEFAULT_XSL_MAN = '',
        DOCBOOK_DEFAULT_XSL_SLIDESPDF = '',
        DOCBOOK_DEFAULT_XSL_SLIDESHTML = '',

        # Paths to the detected executables
        DOCBOOK_XSLTPROC = '',
        DOCBOOK_XMLLINT = '',
        DOCBOOK_FOP = '',

        # Additional flags for the text processors
        DOCBOOK_XSLTPROCFLAGS = SCons.Util.CLVar(''),
        DOCBOOK_XMLLINTFLAGS = SCons.Util.CLVar(''),
        DOCBOOK_FOPFLAGS = SCons.Util.CLVar(''),
        DOCBOOK_XSLTPROCPARAMS = SCons.Util.CLVar(''),

        # Default command lines for the detected executables
        DOCBOOK_XSLTPROCCOM = xsltproc_com['xsltproc'],
        DOCBOOK_XMLLINTCOM = xmllint_com['xmllint'],
        DOCBOOK_FOPCOM = fop_com['fop'],

        # Screen output for the text processors
        DOCBOOK_XSLTPROCCOMSTR = None,
        DOCBOOK_XMLLINTCOMSTR = None,
        DOCBOOK_FOPCOMSTR = None,

        )
    _detect(env)

    try:
        env.AddMethod(DocbookEpub, "DocbookEpub")
        env.AddMethod(DocbookHtml, "DocbookHtml")
        env.AddMethod(DocbookHtmlChunked, "DocbookHtmlChunked")
        env.AddMethod(DocbookHtmlhelp, "DocbookHtmlhelp")
        env.AddMethod(DocbookPdf, "DocbookPdf")
        env.AddMethod(DocbookMan, "DocbookMan")
        env.AddMethod(DocbookSlidesPdf, "DocbookSlidesPdf")
        env.AddMethod(DocbookSlidesHtml, "DocbookSlidesHtml")
        env.AddMethod(DocbookXInclude, "DocbookXInclude")
        env.AddMethod(DocbookXslt, "DocbookXslt")
    except __HOLE__:
        # Looks like we use a pre-0.98 version of SCons...
        from SCons.Script.SConscript import SConsEnvironment
        SConsEnvironment.DocbookEpub = DocbookEpub
        SConsEnvironment.DocbookHtml = DocbookHtml
        SConsEnvironment.DocbookHtmlChunked = DocbookHtmlChunked
        SConsEnvironment.DocbookHtmlhelp = DocbookHtmlhelp
        SConsEnvironment.DocbookPdf = DocbookPdf
        SConsEnvironment.DocbookMan = DocbookMan
        SConsEnvironment.DocbookSlidesPdf = DocbookSlidesPdf
        SConsEnvironment.DocbookSlidesHtml = DocbookSlidesHtml
        SConsEnvironment.DocbookXInclude = DocbookXInclude
        SConsEnvironment.DocbookXslt = DocbookXslt
dataset/ETHPy150Open kayhayen/Nuitka/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Tool/docbook/__init__.py/generate