Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 431
- Log:
Last change authors weren't useful due to the way CVS is
installed on the ROOL server. Turn off the display.
- Author:
- rool
- Date:
- Fri Aug 30 03:03:09 +0100 2013
- Size:
- 21496 Bytes
1 | # -*- perl -*- |
2 | # Configuration of cvsweb.cgi, a web interface to CVS repositories. |
3 | # |
4 | # (c) 1998-1999 H. Zeller <zeller@think.de> |
5 | # 1999 H. Nordstrom <hno@hem.passagen.se> |
6 | # 2000-2002 A. MUSHA <knu@FreeBSD.org> |
7 | # 2002-2005 V. Skyttä <scop@FreeBSD.org> |
8 | # based on work by Bill Fenner <fenner@FreeBSD.org> |
9 | # |
10 | # $FreeBSD: projects/cvsweb/cvsweb.conf,v 1.97 2005/06/19 09:13:50 scop Exp $ |
11 | # $Id: cvsweb.conf,v 1.29 2001/07/23 09:14:52 hzeller Exp $ |
12 | # $Idaemons: /home/cvs/cvsweb/cvsweb.conf,v 1.27 2001/08/01 09:48:39 knu Exp $ |
13 | # |
14 | |
15 | # |
16 | # Unless otherwise noted, all boolean parameters here default to off |
17 | # when no value for them has been explicitly set. |
18 | # |
19 | |
20 | # Set the path for the following commands: |
21 | # cvs, rlog, rcsdiff |
22 | # gzip (if you enable $allow_compress) |
23 | # (g)tar, zip (if you enable $allow_tar) |
24 | # cvsgraph (if you enable $allow_graph) |
25 | # enscript (if you enable $allow_enscript) |
26 | # |
27 | @command_path = qw(/bin /home/rool/local/bin); |
28 | |
29 | # Search the above directories for each command (prefer gtar over tar). |
30 | # |
31 | for (qw(cvs rlog rcsdiff gzip gtar zip cvsgraph enscript)) { |
32 | $CMD{$_} = search_path($_); |
33 | } |
34 | $CMD{tar} = delete($CMD{gtar}) if $CMD{gtar}; |
35 | $CMD{tar} ||= search_path('tar'); |
36 | |
37 | # CVS roots |
38 | # |
39 | # CVSweb can handle several CVS repositories at once. Enter short (internal) |
40 | # symbolic repository names, their names in the UI and the actual locations |
41 | # here. The repositories will be listed in the order they're specified here. |
42 | # |
43 | # Obviously, CVSweb will need read access to these repository dirs. If you |
44 | # receive an error that no valid CVS roots were found, double-check the file |
45 | # permissions and any other attributes your system may have for the repository |
46 | # directories, such as SELinux file contexts. |
47 | # |
48 | # CVSweb will also load per-cvsroot configuration files if they exist. |
49 | # The symbolic_name (see below) of the CVS root will be concatenated into the |
50 | # name of the main (this) configuration file along with a hyphen, and that |
51 | # file will be loaded for that particular CVS root. For examples, see |
52 | # cvsweb.conf-* in the CVSweb distribution. |
53 | # |
54 | # Note that only local repositories are currently supported. Things like |
55 | # :pserver:someone@xyz.com:/data/cvsroot won't work. |
56 | # |
57 | # 'symbolic_name' => ['Name to display', '/path/to/cvsroot'] |
58 | # |
59 | @CVSrepositories = ( |
60 | 'risc_os_open' => ['RISC OS Open', '/home/rool/cvsroot'], |
61 | # 'freebsd' => ['FreeBSD', '/var/ncvs'], |
62 | # 'openbsd' => ['OpenBSD', '/var/ncvs'], |
63 | # 'netbsd' => ['NetBSD', '/var/ncvs'], |
64 | # 'ruby' => ['Ruby', '/var/anoncvs/ruby'], |
65 | ); |
66 | |
67 | # The default CVS root. Note that @CVSrepositories is list, not a hash, |
68 | # so you'll want to use 2 * 0-based-index-number here; or set this directly |
69 | # to the default's symbolic name. Unless specified, the first valid one in |
70 | # @CVSrepositories is used as the default. |
71 | # |
72 | # For example: |
73 | # |
74 | #$cvstreedefault = $CVSrepositories[2 * 0]; |
75 | $cvstreedefault = 'risc_os_open'; |
76 | |
77 | # Mirror sites. The keys will be used as link texts, and the values are |
78 | # URLs pointing to the corresponding mirrors. |
79 | # |
80 | #%MIRRORS = ( |
81 | # 'Other location' => 'http://192.168.0.1/cgi-bin/cvsweb.cgi/', |
82 | # 'Yet another one' => 'http://192.168.0.2/cgi-bin/cvsweb.cgi/', |
83 | #); |
84 | |
85 | # Bug tracking system linking options ("PR" means Problem Report, as in GNATS) |
86 | # This will be done only for views for which $allow_*_extra below is true. |
87 | # |
88 | #@prcategories = qw( |
89 | # advocacy |
90 | # alpha |
91 | # bin |
92 | # conf |
93 | # docs |
94 | # gnu |
95 | # i386 |
96 | # kern |
97 | # misc |
98 | # pending |
99 | # ports |
100 | # sparc |
101 | #); |
102 | $prcgi = "/tracker/tickets/%s"; |
103 | $prkeyword = "Ticket"; |
104 | |
105 | # Manual gateway linking. This will be done only for views for which |
106 | # $allow_*_extra below is true. |
107 | # |
108 | $mancgi = |
109 | "http://www.FreeBSD.org/cgi/man.cgi?apropos=0&sektion=%s&query=%s&manpath=FreeBSD+5.0-current&format=html"; |
110 | |
111 | # Defaults for user definable options. |
112 | # |
113 | %DEFAULTVALUE = ( |
114 | |
115 | # sortby: File sort order |
116 | # file Sort by filename |
117 | # rev Sort by revision number |
118 | # date Sort by commit date |
119 | # author Sort by author |
120 | # log Sort by log message |
121 | "sortby" => "file", |
122 | |
123 | # ignorecase: Ignore case in sorts (filenames, authors, log messages) |
124 | # 0 Honor case |
125 | # 1 Ignore case |
126 | "ignorecase" => "0", |
127 | |
128 | # hideattic: Hide or show files in Attic |
129 | # 1 Hide files in Attic |
130 | # 0 Show files in Attic |
131 | "hideattic" => "1", |
132 | |
133 | # logsort: Sort order for CVS logs |
134 | # date Sort revisions by date |
135 | # rev Sort revision by revision number |
136 | # cvs Don't sort them. Same order as CVS/RCS shows them. |
137 | "logsort" => "date", |
138 | |
139 | # f: Default diff format |
140 | # h Human readable |
141 | # u Unified diff |
142 | # c Context diff |
143 | # s Side by side |
144 | # uc Unified diff, enscript colored (falls back to "u" w/o enscript) |
145 | # cc Context diff, enscript colored (falls back to "c" w/o enscript) |
146 | # sc Side by side, enscript colored (falls back to "s" w/o enscript) |
147 | "f" => "uc", |
148 | |
149 | # hidecvsroot: Don't show the CVSROOT directory. Note that this is |
150 | # just the default for a user settable option (like others in this |
151 | # %DEFAULTVALUE hash); it won't really prevent access to CVSROOT. |
152 | # See @ForbiddenFiles for that. |
153 | # 1 Do not include the top-level CVSROOT directory in dir listings |
154 | # 0 Treat the top-level CVSROOT directory just like all other dirs |
155 | "hidecvsroot" => "0", |
156 | |
157 | # hidenonreadable: Don't show files and directories that cannot be read |
158 | # in directory listings. |
159 | # 1 Hide non-readable entries |
160 | # 0 Show non-readable entries |
161 | "hidenonreadable" => "1", |
162 | |
163 | # ln: Show line numbers in HTMLized views |
164 | # 1 Show line numbers |
165 | # 0 Don't show line numbers |
166 | "ln" => "1", |
167 | ); |
168 | |
169 | # |
170 | # Layout options (see also the included CSS file) |
171 | # |
172 | |
173 | # Wanna have a logo on the page ? |
174 | # |
175 | #$logo = '<p><img src="/icons/apache_pb.gif" alt="Powered by Apache" /></p>'; |
176 | |
177 | # The title of the Page on startup. This will be put inside <h1> and <title> |
178 | # tags, and HTML escaped. |
179 | # |
180 | $defaulttitle = ''; |
181 | |
182 | # The address is shown on the footer. This will be put inside a <address> tag. |
183 | # |
184 | $address = ''; |
185 | $long_intro = ''; |
186 | $short_instruction = ''; |
187 | |
188 | # Icons for the web UI. If ICON-URL is empty, the TEXT representation is |
189 | # used. If you do not want to have a tool tip for an icon, set TEXT empty. |
190 | # The width and height of the icon allow the browser to correctly display |
191 | # the table while still loading the icons. If these icons are too large, |
192 | # check out the "mini" versions in the icons/ directory; they have a |
193 | # width/height of 16/16. |
194 | # |
195 | my $iconsdir = '/perl/cvsweb/icons'; |
196 | |
197 | # format: TEXT ICON-URL width height |
198 | %ICONS = ( |
199 | back => [('[BACK]', "$iconsdir/icon_up.gif", 11, 13)], |
200 | dir => [('[DIR]', "$iconsdir/icon_folder.gif", 15, 13)], |
201 | file => [('[TXT]', "$iconsdir/icon_text.gif", 11, 13)], |
202 | binfile => [('[BIN]', "$iconsdir/icon_binary.gif", 11, 13)], |
203 | graph => [('[GRAPH]', "$iconsdir/minigraph.png", 16, 16)], |
204 | ); |
205 | undef $iconsdir; |
206 | |
207 | # An URL where to find the CSS. |
208 | # |
209 | $cssurl = '/perl/cvsweb/css/cvsweb.css'; |
210 | |
211 | # The length to which the last log entry should be truncated when shown |
212 | # in the directory view. |
213 | # |
214 | $shortLogLen = 80; |
215 | |
216 | # Show author of last change? |
217 | # |
218 | $show_author = 0; |
219 | |
220 | # Cell padding for directory table. |
221 | # |
222 | $tablepadding = 2; |
223 | |
224 | # Regular expressions for files and directories which should be hidden. |
225 | # Each regexp is compared against a path relative to a CVS root, after |
226 | # stripping the trailing ",v" if present. Matching files and directories |
227 | # are not displayed. |
228 | # |
229 | @ForbiddenFiles = ( |
230 | qr|^CVSROOT$|o, # Hide CVSROOT |
231 | qr|^CVSROOT/.*$|o, # Hide contents of CVSROOT |
232 | qr|/\.cvspass$|o, # Should never be committed, but just in case... |
233 | #qr|^my/+secret/+dir|o, |
234 | ); |
235 | |
236 | # Use CVSROOT/descriptions for describing the directories/modules? |
237 | # See INSTALL, section 9. |
238 | # |
239 | $use_descriptions = 0; |
240 | |
241 | # |
242 | # Human readable diff. |
243 | # |
244 | # (c) 1998 H. Zeller <zeller@think.de> |
245 | # |
246 | # Generates two columns of color encoded diff; much like xdiff or GNU Emacs' |
247 | # ediff-mode. |
248 | # |
249 | # The diff-stuff is a piece of code I once made for cvs2html which is under |
250 | # GPL, see http://www.sslug.dk/cvs2html |
251 | # (c) 1997/98 Peter Toft <pto@sslug.imm.dtu.dk> |
252 | |
253 | # Make lines breakable so that the columns do not exceed the width of the |
254 | # browser? |
255 | # |
256 | $hr_breakable = 1; |
257 | |
258 | # Print function names in diffs (unified and context only). |
259 | # See the -p option in the diff(1) man page. |
260 | # |
261 | $showfunc = 1; |
262 | |
263 | # For each pair of regexps, files that match the first regexp will be diff'ed |
264 | # with an -F option using the second regexp (unified and context only). |
265 | # See the -F option in the diff(1) man page. |
266 | # |
267 | %funcline_regexp = ( |
268 | qr/\.(?:4th|fr)$/o => "\\(^\\|[ \t]\\): ", |
269 | qr/\.rb$/o => "^[\t ]*\\(class\\|module\\|def\\) ", |
270 | ); |
271 | |
272 | # Ignore whitespace in human readable diffs? ('-w' option to diff) |
273 | # |
274 | $hr_ignwhite = 0; |
275 | |
276 | # Ignore diffs which are caused by keyword substitution, $Id and friends? |
277 | # ('-kk' option to rcsdiff) |
278 | # |
279 | $hr_ignkeysubst = 1; |
280 | |
281 | # The width of the textinput of the "request diff" form. |
282 | # |
283 | $inputTextSize = 12; |
284 | |
285 | # Custom per MIME type diff tools, used for comparing binary files such as |
286 | # spreadsheets, images etc. Each key is a MIME type in lowercase. |
287 | # Each value is an array ref of available diff tools for that type, each of |
288 | # which is a hash ref with values (mandatory where default not listed): |
289 | # name: the name to show in the UI for this diff type |
290 | # cmd: full path to executable |
291 | # args: arguments as an array ref (not string!, defaults to no arguments) |
292 | # type: output MIME type (defaults to text/plain) |
293 | # |
294 | %DIFF_COMMANDS = ( |
295 | #'text/xml' => [ |
296 | # { name => 'XMLdiff', |
297 | # cmd => $CMD{xmldiff}, |
298 | # }, |
299 | # { name => 'XMLdiff (XUpdate)', |
300 | # cmd => $CMD{xmldiff}, |
301 | # args => [ qw(-x) ], |
302 | # type => 'text/xml', |
303 | # }, |
304 | #], |
305 | ); |
306 | |
307 | # |
308 | # Mime types |
309 | # |
310 | |
311 | # The MIME type lookup works like this: |
312 | # 1) Look up from %MTYPES below with the file name extension (suffix). |
313 | # 2) If not found, use the MIME::Types(3) module if it's available. |
314 | # 3) If not found, lookup from the $mime_types file (see below). |
315 | # 4) If not found, try %MTYPES{'*'}. |
316 | # 5) If not found, use 'application/octet-stream' if the file's keyword |
317 | # substitution mode is b (ie. the file was checked in as binary to CVS), |
318 | # 'text/plain' otherwise. |
319 | |
320 | # Quick MIME type lookup; maps filename extensions to MIME types. |
321 | # Add common mappings here for fast lookup. You can also use this |
322 | # to override MIME::Types(3) or the $mime_types file (see below). |
323 | # |
324 | %MTYPES = ( |
325 | "html" => "text/html", |
326 | "shtml" => "text/html", |
327 | "gif" => "image/gif", |
328 | "jpeg" => "image/jpeg", |
329 | "jpg" => "image/jpeg", |
330 | "png" => "image/png", |
331 | "xpm" => "image/xpm", |
332 | # "*" => "text/plain", |
333 | ); |
334 | |
335 | # The traditional mime.types file, eg. the one from Apache is fine. |
336 | # See above where this gets used. |
337 | # |
338 | $mime_types = '/etc/mime.types'; |
339 | |
340 | # Charset appended to the Content-Type HTTP header for text/* MIME types. |
341 | # Note that the web server may default to some charset which may take effect |
342 | # if you leave this parameter empty or unset. |
343 | # For Apache, see also the AddDefaultCharset directive. |
344 | # |
345 | $charset = ''; |
346 | |
347 | # e.g. |
348 | #$charset = $where =~ m,/ru[/_-], ? 'koi8-r' |
349 | # : $where =~ m,/zh[/_-], ? 'big5' |
350 | # : $where =~ m,/ja[/_-], ? 'x-euc-jp' |
351 | # : $where =~ m,/ko[/_-], ? 'x-euc-kr' |
352 | # : 'iso-8859-1'; |
353 | |
354 | # Output filter |
355 | # |
356 | $output_filter = ''; |
357 | |
358 | # e.g. |
359 | ## unify/convert Japanese code into EUC-JP |
360 | #$output_filter= '/usr/local/bin/nkf -e'; |
361 | |
362 | ############## |
363 | # Misc |
364 | ############## |
365 | |
366 | # Allow annotation of files? See also @annotate_options below. |
367 | # |
368 | $allow_annotate = 1; |
369 | |
370 | # Allow HTMLized versions of files? |
371 | # |
372 | $allow_markup = 1; |
373 | |
374 | # Allow CVSweb to create mailto: links from email addresses in various |
375 | # HTMLized views? Default: yes. |
376 | # |
377 | #$allow_mailtos = 0; |
378 | |
379 | ## Extra hyperlinking means hyperlinks to bug tracking systems and manual page |
380 | ## gateways, see $prcgi and $mancgi and related options above. |
381 | |
382 | # Allow extra hyperlinking (such as PR cross-references) in logs? |
383 | # Default: yes. |
384 | # |
385 | #$allow_log_extra = 0; |
386 | |
387 | # Allow extra hyperlinking in directory views? |
388 | # |
389 | $allow_dir_extra = 1; |
390 | |
391 | # Allow extra hyperlinking in source code/formatted diff views? |
392 | # |
393 | $allow_source_extra = 1; |
394 | |
395 | # Allow compression with gzip in general? Note that this also requires |
396 | # that the browser supports it, and will be disabled on the fly when necessary. |
397 | # |
398 | #$allow_compress = 1; |
399 | |
400 | # Use JavaScript in the UI? |
401 | # |
402 | $use_java_script = 1; |
403 | |
404 | # Show a form for setting options in the directory view? |
405 | # |
406 | $edit_option_form = 1; |
407 | |
408 | # Show last changelog message for subdirectories? |
409 | # The current implementation makes many assumptions and may show the |
410 | # incorrect file at some times. The main assumption is that the last |
411 | # modified file has the newest filedate. But some CVS operations |
412 | # touch the file even when a new version isn't checked in, and TAG |
413 | # based browsing essentially puts this out of order unless the last |
414 | # checkin was on the same tag as you are viewing. |
415 | # Enable this if you like the feature, but don't rely on correct results. |
416 | # |
417 | #$show_subdir_lastmod = 1; |
418 | |
419 | # Show CVS log when viewing file contents? |
420 | # |
421 | $show_log_in_markup = 1; |
422 | |
423 | # Preformat when viewing file contents? This should be turned off |
424 | # when you have files in the repository that are in a multibyte |
425 | # encoding which uses HTML special characters ([<>&"]) as part of a |
426 | # multibyte character. (such as iso-2022-jp, ShiftJIS, etc.) |
427 | # Otherwise those files will get screwed up in markup. |
428 | # |
429 | # Note: enscript(1) highlighting is preferred over the built-in preformatting, |
430 | # ie. this has no effect if $allow_enscript is true and enscript can highlight |
431 | # the file. |
432 | # |
433 | #$preformat_in_markup = 1; |
434 | |
435 | # Default tab width used to expand tabs to spaces in various HTMLized views. |
436 | # Note that CVSweb scans the first few lines of sources for some common editor |
437 | # directives controlling the tab width. It uses the value from them if found, |
438 | # falling back to the value of $tabstop if not. Default: 8. |
439 | # |
440 | #$tabstop = 4; |
441 | |
442 | # If you wish to display absolute times in your local timezone, |
443 | # then define @mytz and fill in the strings for your standard and |
444 | # daylight time. Note that you must also make sure the system |
445 | # timezone is correctly set. |
446 | # |
447 | #@mytz=("EST", "EDT"); |
448 | |
449 | # CVSweb is friendly to caches by sending the HTTP Last-Modified |
450 | # header corresponding to the sent content. In the case of a |
451 | # checkout, this may require running rcslog on the file solely for the |
452 | # purpose of retrieving the timestamp to be sent. If you have a slow |
453 | # server, you may want to turn this off for a small performance gain. |
454 | # |
455 | $use_moddate = 1; |
456 | |
457 | # Maximum number of filenames to pass to rlog(1) in one command. |
458 | # If you see "Failed to spawn GNU rlog" errors with directories containing |
459 | # lots of files, experiment by setting this to different values and see if |
460 | # the error still occurs. A good value to start from would be eg. 200. |
461 | # Just comment this out if you're not bitten by the problem. |
462 | # |
463 | #$file_list_len = 200; |
464 | |
465 | # Allow graphical representations of file revisions and branches with CvsGraph? |
466 | # |
467 | $allow_cvsgraph = $CMD{cvsgraph} ? 1 : 0; |
468 | |
469 | # Path to the CvsGraph configuration file. Only used if $allow_cvsgraph |
470 | # is true. Leave this empty or comment it out to make cvsgraph(1) use its |
471 | # default configuration file. Note that CVSweb will override some of the |
472 | # settings in the configuration file with command line options, see |
473 | # doGraph() and doGraphView() in cvsweb.cgi for details. |
474 | # |
475 | $cvsgraph_config = "/home/rool/local/etc/cvsgraph.conf"; |
476 | |
477 | # URL to the CVSHistory script. This should be absolute (but does not need |
478 | # to include the host and port if the script is on the same server as |
479 | # CVSweb). |
480 | #$cvshistory_url = "/python/cvshistory/cvshistory.cgi"; |
481 | $cvshistory_url = "/viewer/history"; |
482 | |
483 | # Whether to allow downloading a tarball or a zip of the current directory. |
484 | # While downloading of the entire repository is disallowed, depending on |
485 | # the directory this may take a lot of time and disk space. For some CVS |
486 | # versions, the user account running CVSweb needs write access to |
487 | # CVSROOT/val-tags. See also the tar, gzip and zip options below. |
488 | # |
489 | #$allow_tar = (($CMD{tar} && $CMD{gzip}) || $CMD{zip}) ? 1 : 0; |
490 | |
491 | # Options to pass to tar(1). |
492 | # For example: @tar_options = qw(--ignore-failed-read); |
493 | # GNU tar has some useful options against unexpected errors. |
494 | # Other useful options include "--owner=0" and "--group=0", see |
495 | # the tar(1) (or gtar(1)) manpage for details. |
496 | # |
497 | @tar_options = qw(); |
498 | |
499 | # Options to pass to gzip(1) when compressing a tarball to download. |
500 | # For example: @gzip_options = qw(-3); |
501 | # Try lower compression level than 6 (default) if you want faster |
502 | # compression, or higher for better compression. |
503 | # |
504 | @gzip_options = qw(); |
505 | |
506 | # Options to pass to zip(1) when compressing a zip archive to download. |
507 | # For example: @zip_options = qw(-3); |
508 | # Try lower compression level than 6 (default) if you want faster |
509 | # compression, or higher for better compression. |
510 | # |
511 | @zip_options = qw(-q); |
512 | |
513 | # Options to pass to cvs(1). |
514 | # For cvs versions 1.11 to 1.11.6 (broken in < 1.11, removed in 1.11.7), you |
515 | # can use the '-l' option to prevent cvs from writing to the history file. |
516 | # For other cvs versions, either suppress history logging by using the |
517 | # LogHistory parameter in CVSROOT/config or make sure that the CVSweb user |
518 | # can read and write to CVSROOT/history. |
519 | # FreeBSD's and OpenBSD's cvs(1) has long since supported -R (read only access |
520 | # mode) option, which considerably speeds up checkouts over NFS. For other |
521 | # platforms, the -R option and the CVSREADONLYFS environment variable are |
522 | # available in cvs >= 1.12.1. A similar effect is provided by -u on NetBSD. |
523 | # |
524 | @cvs_options = qw(-f); |
525 | push @cvs_options, '-R' if ($^O eq 'freebsd' || $^O eq 'openbsd'); |
526 | push @cvs_options, '-u' if ($^O eq 'netbsd'); |
527 | # Only affects cvs >= 1.12.1, but doesn't hurt older ones. |
528 | $ENV{CVSREADONLYFS} = 1 unless exists($ENV{CVSREADONLYFS}); |
529 | |
530 | # Options to pass to the 'cvs annotate' command, usually the normal |
531 | # @cvs_options are good enough here. |
532 | # To make annotate work against a read only repository, add -n, ie.: |
533 | # @annotate_options = (@cvs_options, '-n'); |
534 | # |
535 | @annotate_options = @cvs_options; |
536 | |
537 | # Options to pass to rcsdiff(1). |
538 | # Probably the only useful one here is -q (suppress diagnostic output). |
539 | # |
540 | @rcsdiff_options = qw(-q); |
541 | |
542 | # Enables syntax highlighting using GNU Enscript if set. |
543 | # You will need GNU Enscript version 1.6.3 or newer for this to work. |
544 | # |
545 | $allow_enscript = $CMD{enscript} ? 1 : 0; |
546 | |
547 | # Options to pass to enscript(1). |
548 | # Do not set the -q, --language, -o or --highlight options here. |
549 | # Most useful styles are probably emacs, emacs_verbose and msvc. |
550 | # |
551 | @enscript_options = qw(--style=emacs --color=1); |
552 | |
553 | # Enscript highlight rule to filename regex mappings. The set of useful |
554 | # mappings depends on what highlight rules the system has installed. |
555 | # |
556 | %enscript_types = |
557 | ( |
558 | 'ada' => qr/\.ad(s|b|a)$/o, |
559 | 'asm' => qr/\.[Ss]$/o, |
560 | 'awk' => qr/\.awk$/o, |
561 | 'bash' => qr/\.(bash(_profile|rc)|inputrc)$/o, |
562 | 'c' => qr/\.(c|h)$/o, |
563 | 'changelog' => qr/^changelog$/io, |
564 | 'cpp' => qr/\.(c\+\+|C|H|cpp|cc|cxx)$/o, |
565 | 'csh' => qr/\.(csh(rc)?|log(in|out)|history)$/o, |
566 | 'elisp' => qr/\.e(l|macs)$/o, |
567 | 'fortran' => qr/\.[fF]$/o, |
568 | 'haskell' => qr/\.(l?h|l?g)s$/o, |
569 | 'html' => qr/\.x?html?$/o, |
570 | 'idl' => qr/\.idl$/o, |
571 | 'inf' => qr/\.inf$/io, |
572 | 'java' => qr/\.java$/o, |
573 | 'javascript' => qr/\.(js|pac)$/o, |
574 | 'ksh' => qr/\.ksh$/o, |
575 | 'm4' => qr/\.m4$/o, |
576 | 'makefile' => qr/(GNU)?[Mm]akefile(?!\.PL\b)|\.(ma?ke?|am)$/o, |
577 | 'matlab' => qr/\.m$/o, |
578 | 'nroff' => qr/\.man$/o, |
579 | 'pascal' => qr/\.p(as|p)?$/io, |
580 | 'perl' => qr/\.p(m|(er)?l)$/io, |
581 | 'postscript' => qr/\.e?ps$/io, |
582 | 'python' => qr/\.py$/o, |
583 | 'rfc' => qr/\b((rfc|draft)\..*\.txt)$/o, |
584 | 'scheme' => qr/\.(scm|scheme)$/o, |
585 | 'sh' => qr/\.sh$/o, |
586 | 'skill' => qr/\.il$/o, |
587 | 'sql' => qr/\.sql$/o, |
588 | 'states' => qr/\.st$/o, |
589 | 'synopsys' => qr/\.s(cr|yn(th)?)$/o, |
590 | 'tcl' => qr/\.tcl$/o, |
591 | 'tcsh' => qr/\.tcshrc$/o, |
592 | 'tex' => qr/\.tex$/o, |
593 | 'vba' => qr/\.vba$/o, |
594 | 'verilog' => qr/\.(v|vh)$/o, |
595 | 'vhdl' => qr/\.vhdl?$/o, |
596 | 'vrml' => qr/\.wrl$/o, |
597 | 'wmlscript' => qr/\.wmls(cript)?$/o, |
598 | 'zsh' => qr/\.(zsh(env|rc)|z(profile|log(in|out)))$/o, |
599 | ); |
600 | |
601 | # Troubleshooting: in case of problems, setting this to 1 will cause more |
602 | # error output into your web server error log. Under normal operation, |
603 | # this should be set to 0 or commented out. |
604 | # |
605 | #$DEBUG = 1; |
606 | |
607 | # Enable this to let CVSweb load extra configuration files from the "conf.d" |
608 | # subdirectory of the directory this file is located in. This enables site |
609 | # specific configuration without having to modify this "master" configuration |
610 | # file (except for enabling this functionality below :) |
611 | # |
612 | if (0) { |
613 | my $confdir = catdir(dirname(__FILE__), 'conf.d'); |
614 | if (opendir(CONFD, $confdir)) { |
615 | my @files = sort(map(catfile($confdir, $_), readdir(CONFD))); |
616 | close(CONFD); |
617 | for my $conffile (grep(-f && -r _, @files)) { |
618 | ($conffile) = ($conffile =~ /(.+\.conf)$/) or next; |
619 | do "$conffile" or config_error($conffile, $@); |
620 | } |
621 | } |
622 | } |
623 | |
624 | 1; |
625 | |
626 | # EOF |