Subversion Repositories DevTools

Rev

Rev 5209 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5209 dpurdie 1
# -*- mode: perl -*-
2
# LXR master configuration file
3
#
4
 
5
(
6
		################################
7
		# Global configuration section #
8
		################################
9
 
10
	{
11
		#
12
		# Master mode (where to find the tree name) #
13
		#===========================================#
14
 
15
		# Possible values are:
16
		#	- 'single'		single-tree context, no tree name (implicit)
17
		#	- 'host'		one host per tree
18
		#	- 'prefix'		generic host prefixed with tree name
19
		#	- 'section'		one section per tree (to be handled through symbolic
20
		#	          		                      links or duplication)
21
		#	- 'embedded'	tree name embedded in section path
22
		#	- 'argument'	first argument is tree name [PREFERRED]
23
		# CAUTION!
24
		#	Changing this parameter after initial configuration may
25
		#	require adjustements to other parameters!
26
 
27
	  'routing' => 'argument'
28
 
29
		# Auxiliary tools subsection #
30
		#============================#
31
 
32
	, 'tmpdir' => '/tmp'
33
 
34
	, 'glimpsebin'     => '/usr/local/bin/glimpse'
35
	, 'glimpseindex'   => '/usr/local/bin/glimpseindex'
36
	, 'glimpsedirbase' => '/opt/glimpse'
37
#@U	, 'swishbin'     => '%swish%'
38
#@U	, 'swishdirbase' => '%swishdirbase%'
39
	, 'swishconf' => '/opt/lxr/templates/swish-e.conf'
40
 
41
	, 'ectagsbin' => '/usr/bin/ctags'
42
	, 'ectagsconf' => '/opt/lxr/templates/ectags.conf'
43
 
44
	, 'cvspath' => '/bin:/usr/local/bin:/usr/bin:/usr/sbin'
45
	, 'gitpath' => '/bin:/usr/local/bin:/usr/bin:/usr/sbin'
46
	, 'hgpath'  => '/bin:/usr/local/bin:/usr/bin:/usr/sbin'
47
	, 'svnpath' => '/bin:/usr/local/bin:/usr/bin:/usr/sbin'
48
 
49
		# Computer DNS names subsection #
50
		#================================
51
	,	'host_names' =>	[ @HOSTLIST@
52
			# Put here aliases for host name, such as
53
			#			, '//localhost'
54
			#			, 'https://192.168.1.1'
55
			#			, 'http://mycomputer.outside.domain:12345'
56
						]
57
 
58
		# HTML subsection #
59
		#=================#
60
 
61
		# All paths in this subsection are relative to LXR root directory
62
 
63
		# Templates used for headers and footers
64
	, 'htmlfatal'		=> '/opt/lxr/templates/html/html-fatal.html'
65
	, 'htmlhead'		=> '/opt/lxr/templates/html/html-head-btn.html'
66
	, 'htmltail'		=> '/opt/lxr/templates/html/html-tail.html'
67
	, 'htmldir'			=> '/opt/lxr/templates/html/html-dir-indexing.html'
68
		# If you do not need the "last indexed" column in directory
69
		# display (e.g. for a stable unchanging tree), erase the
70
		# '-indexing' suffix above.
71
	, 'htmlident'		=> '/opt/lxr/templates/html/html-ident.html'
72
	, 'htmlsearch'		=> '/opt/lxr/templates/html/html-search-glimpse.html'
73
	, 'htmlconfig'		=> '/opt/lxr/templates/html/html-config.html'
74
 
75
		# htmlhead and htmltail can be customised for the various
76
		# LXR operations. Just replace html by source (listing file),
77
		# sourcedir (displaying directory), diff (difference markup),
78
		# ident (identifier search), search (free-text search)
79
		# as below (which changes nothing):
80
#	, 'sourcehead'		=> '/opt/lxr/templates/html/html-head.html'
81
#	, 'sourcedirhead'	=> '/opt/lxr/templates/html/html-head.html'
82
 
83
		# showconfig script is a bit special since "version" has
84
		# no meaning for it. Better to wipe out the 'variables' selection
85
		# links with an adequate header:
86
	, 'showconfighead'		=> '/opt/lxr/templates/html/config-head-btn-smaller.html'
87
 
88
		# Default character width of left version (for diff)
89
	, 'diffleftwidth'	=> 50
90
 
91
		# Default identifier search constraint (for ident)
92
#	, 'identdefonly'	=> 1
93
 
94
		# CSS style sheet
95
	, 'stylesheet'		=> 'templates/lxr.css'
96
	, 'alternate_stylesheet' => [ 'templates/classic.css' ]
97
 
98
		# Default character encoding
5281 dpurdie 99
	, 'encoding'	=> 'iso-8859-1'
5209 dpurdie 100
 
101
		# File management subsection #
102
		#============================#
103
 
104
		# Which files should be excluded from indexing (and display).
105
	, 'ignorefiles' =>
106
		'^\\.|~$|\\.(o|a|orig)$|^CVS$|^core$'
107
		# Which extensions to treat as images when browsing.  If a file is an image,
108
		# it is displayed.
109
	, 'graphicfile' =>
110
		'bitmap|bmp|gif|icon?|jp2|jpe?g|pjpe?g|png|svg|tiff?|xbm|xpm'
111
 
112
		# Which file extensions are associated with which icon
113
		# Below is an example using 'Oxygen' theme available with KDE
114
		# small-icons/ is a symbolic link to
115
		#		 /usr/share/icons/oxygen/22x22/mimetypes/
116
		# (This location is valid for Fedora distributions,
117
		# check for others)
118
# 	, 'iconfolder' => 'small-icons/'
119
		# Don't forget the final / above.
120
# 	, 'icons' =>
121
#		{	'[gm]?awk'			=> 'mimetypes/application-x-awk.png'
122
#		,	'c|pc'				=> 'mimetypes/text-x-csrc.png'
123
# 		,	'h|hh'				=> 'mimetypes/text-x-chdr.png'
124
# 		,	'c\+\+|cc|cpp|cxx'	=> 'mimetypes/text-x-c++src.png'
125
# 		,	'hpp|hxx|h\+\+'		=> 'mimetypes/text-x-c++hdr.png'
126
# 		,	'java'				=> 'mimetypes/text-x-java.png'
127
# 		,	'js'				=> 'mimetypes/application-x-javascript.png'
128
#		,	'ma?k'				=> 'mimetypes/text-x-makefile.png'
129
# 		,	'plx?|pm|perl'		=> 'mimetypes/application-x-perl.png'
130
# 		,	'php3?|phtml'		=> 'mimetypes/application-x-php.png'
131
# 		,	'py|python|px'		=> 'mimetypes/text-x-python.png'
132
# 		,	'sh|ba?sh|ksh|zsh|m4' => 'mimetypes/text-x-script.png'
133
# 		,	's?html?'			=> 'mimetypes/text-html.png'
134
# 		,	'css'				=> 'mimetypes/text-css.png'
135
# 		,	'p|pas'				=> 'mimetypes/text-x-pascal.png'
136
# 		,	'patch'				=> 'mimetypes/text-x-patch.png'
137
# 		,	'pdf'				=> 'mimetypes/application-pdf.png'
138
# 		,	'sql|pk(s|b)'		=> 'mimetypes/text-x-sql.png'
139
# 		,	'rb|ruby'			=> 'mimetypes/application-x-ruby.png'
140
# 		,	'txt'				=> 'mimetypes/text-plain.png'
141
# 		,	'ui'				=> 'mimetypes/text-xml.png'
142
# 		,	'.*\~'				=> 'mimetypes/application-x-trash'
143
# 		}
144
# 	, 'graphicicon' => 'mimetypes/image-x-generic.png'
145
# 	, 'defaulticon' => 'mimetypes/unknown.png'
146
# 	, 'diricon'     => 'mimetypes/inode-directory.png'
147
#	, 'parenticon'  => 'actions/go-up.png'
148
 
149
	, 'filetypeconf' => '/opt/lxr/templates/filetype.conf'
150
 
151
	, 'genericconf' => '/opt/lxr/lib/LXR/Lang/generic.conf'
152
 
153
		# "Common factor" subsection #
154
		#============================#
155
 
156
		# In case your LXR installation controls several trees,
157
		# put here what you consider common parameters between
158
		# your source trees.
159
		# A parameter is "common" if its value must be simultaneously
160
		# adjusted in every tree.
161
 
162
		# Virtual root shared by all trees (or hosts)
163
	, 'virtroot' => '/lxr'
164
 
165
		# Pattern for extracting tree name from URL, since all
166
		# trees are usually served from the same physical server.
167
		# Meaningful only in multiple trees context. Example for
168
		# built-in method where tree id is last before script name
169
#	, 'treeextract' => '([^/]*)/[^/]*$'
170
 
171
	, 'dbuser'		=> 'lxr'
172
	, 'dbpass'		=> 'lxrpw'
173
	, 'dbprefix'	=> 'lxr_'
174
	}
175
 
176
# ------------------------------------------------------------------------
177
 
178
		###############################
179
		# Tree configuration sections #
180
		###############################
181
@TREE_SECTIONS@
182
)