Subversion Repositories DevTools

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

# -*- mode: perl -*-
# LXR master configuration file
#

(
                ################################
                # Global configuration section #
                ################################

        {
                #
                # Master mode (where to find the tree name) #
                #===========================================#

                # Possible values are:
                #       - 'single'              single-tree context, no tree name (implicit)
                #       - 'host'                one host per tree
                #       - 'prefix'              generic host prefixed with tree name
                #       - 'section'             one section per tree (to be handled through symbolic
                #                                                     links or duplication)
                #       - 'embedded'    tree name embedded in section path
                #       - 'argument'    first argument is tree name [PREFERRED]
                # CAUTION!
                #       Changing this parameter after initial configuration may
                #       require adjustements to other parameters!

          'routing' => 'argument'

                # Auxiliary tools subsection #
                #============================#

        , 'tmpdir' => '/tmp'

        , 'glimpsebin'     => '/usr/local/bin/glimpse'
        , 'glimpseindex'   => '/usr/local/bin/glimpseindex'
        , 'glimpsedirbase' => '/opt/glimpse'
#@U     , 'swishbin'     => '%swish%'
#@U     , 'swishdirbase' => '%swishdirbase%'
        , 'swishconf' => '/opt/lxr/templates/swish-e.conf'

        , 'ectagsbin' => '/usr/bin/ctags'
        , 'ectagsconf' => '/opt/lxr/templates/ectags.conf'

        , 'cvspath' => '/bin:/usr/local/bin:/usr/bin:/usr/sbin'
        , 'gitpath' => '/bin:/usr/local/bin:/usr/bin:/usr/sbin'
        , 'hgpath'  => '/bin:/usr/local/bin:/usr/bin:/usr/sbin'
        , 'svnpath' => '/bin:/usr/local/bin:/usr/bin:/usr/sbin'

                # Computer DNS names subsection #
                #================================
        ,       'host_names' => [ @HOSTLIST@
                        # Put here aliases for host name, such as
                        #                       , '//localhost'
                        #                       , 'https://192.168.1.1'
                        #                       , 'http://mycomputer.outside.domain:12345'
                                                ]

                # HTML subsection #
                #=================#

                # All paths in this subsection are relative to LXR root directory

                # Templates used for headers and footers
        , 'htmlfatal'           => '/opt/lxr/templates/html/html-fatal.html'
        , 'htmlhead'            => '/opt/lxr/templates/html/html-head-btn.html'
        , 'htmltail'            => '/opt/lxr/templates/html/html-tail.html'
        , 'htmldir'                     => '/opt/lxr/templates/html/html-dir-indexing.html'
                # If you do not need the "last indexed" column in directory
                # display (e.g. for a stable unchanging tree), erase the
                # '-indexing' suffix above.
        , 'htmlident'           => '/opt/lxr/templates/html/html-ident.html'
        , 'htmlsearch'          => '/opt/lxr/templates/html/html-search-glimpse.html'
        , 'htmlconfig'          => '/opt/lxr/templates/html/html-config.html'

                # htmlhead and htmltail can be customised for the various
                # LXR operations. Just replace html by source (listing file),
                # sourcedir (displaying directory), diff (difference markup),
                # ident (identifier search), search (free-text search)
                # as below (which changes nothing):
#       , 'sourcehead'          => '/opt/lxr/templates/html/html-head.html'
#       , 'sourcedirhead'       => '/opt/lxr/templates/html/html-head.html'

                # showconfig script is a bit special since "version" has
                # no meaning for it. Better to wipe out the 'variables' selection
                # links with an adequate header:
        , 'showconfighead'              => '/opt/lxr/templates/html/config-head-btn-smaller.html'

                # Default character width of left version (for diff)
        , 'diffleftwidth'       => 50

                # Default identifier search constraint (for ident)
#       , 'identdefonly'        => 1

                # CSS style sheet
        , 'stylesheet'          => 'templates/lxr.css'
        , 'alternate_stylesheet' => [ 'templates/classic.css' ]

                # Default character encoding
        , 'encoding'    => 'utf-8'

                # File management subsection #
                #============================#

                # Which files should be excluded from indexing (and display).
        , 'ignorefiles' =>
                '^\\.|~$|\\.(o|a|orig)$|^CVS$|^core$'
                # Which extensions to treat as images when browsing.  If a file is an image,
                # it is displayed.
        , 'graphicfile' =>
                'bitmap|bmp|gif|icon?|jp2|jpe?g|pjpe?g|png|svg|tiff?|xbm|xpm'

                # Which file extensions are associated with which icon
                # Below is an example using 'Oxygen' theme available with KDE
                # small-icons/ is a symbolic link to
                #                /usr/share/icons/oxygen/22x22/mimetypes/
                # (This location is valid for Fedora distributions,
                # check for others)
#       , 'iconfolder' => 'small-icons/'
                # Don't forget the final / above.
#       , 'icons' =>
#               {       '[gm]?awk'                      => 'mimetypes/application-x-awk.png'
#               ,       'c|pc'                          => 'mimetypes/text-x-csrc.png'
#               ,       'h|hh'                          => 'mimetypes/text-x-chdr.png'
#               ,       'c\+\+|cc|cpp|cxx'      => 'mimetypes/text-x-c++src.png'
#               ,       'hpp|hxx|h\+\+'         => 'mimetypes/text-x-c++hdr.png'
#               ,       'java'                          => 'mimetypes/text-x-java.png'
#               ,       'js'                            => 'mimetypes/application-x-javascript.png'
#               ,       'ma?k'                          => 'mimetypes/text-x-makefile.png'
#               ,       'plx?|pm|perl'          => 'mimetypes/application-x-perl.png'
#               ,       'php3?|phtml'           => 'mimetypes/application-x-php.png'
#               ,       'py|python|px'          => 'mimetypes/text-x-python.png'
#               ,       'sh|ba?sh|ksh|zsh|m4' => 'mimetypes/text-x-script.png'
#               ,       's?html?'                       => 'mimetypes/text-html.png'
#               ,       'css'                           => 'mimetypes/text-css.png'
#               ,       'p|pas'                         => 'mimetypes/text-x-pascal.png'
#               ,       'patch'                         => 'mimetypes/text-x-patch.png'
#               ,       'pdf'                           => 'mimetypes/application-pdf.png'
#               ,       'sql|pk(s|b)'           => 'mimetypes/text-x-sql.png'
#               ,       'rb|ruby'                       => 'mimetypes/application-x-ruby.png'
#               ,       'txt'                           => 'mimetypes/text-plain.png'
#               ,       'ui'                            => 'mimetypes/text-xml.png'
#               ,       '.*\~'                          => 'mimetypes/application-x-trash'
#               }
#       , 'graphicicon' => 'mimetypes/image-x-generic.png'
#       , 'defaulticon' => 'mimetypes/unknown.png'
#       , 'diricon'     => 'mimetypes/inode-directory.png'
#       , 'parenticon'  => 'actions/go-up.png'

        , 'filetypeconf' => '/opt/lxr/templates/filetype.conf'

        , 'genericconf' => '/opt/lxr/lib/LXR/Lang/generic.conf'

                # "Common factor" subsection #
                #============================#

                # In case your LXR installation controls several trees,
                # put here what you consider common parameters between
                # your source trees.
                # A parameter is "common" if its value must be simultaneously
                # adjusted in every tree.

                # Virtual root shared by all trees (or hosts)
        , 'virtroot' => '/lxr'

                # Pattern for extracting tree name from URL, since all
                # trees are usually served from the same physical server.
                # Meaningful only in multiple trees context. Example for
                # built-in method where tree id is last before script name
#       , 'treeextract' => '([^/]*)/[^/]*$'

        , 'dbuser'              => 'lxr'
        , 'dbpass'              => 'lxrpw'
        , 'dbprefix'    => 'lxr_'
        }

# ------------------------------------------------------------------------

                ###############################
                # Tree configuration sections #
                ###############################
@TREE_SECTIONS@
)