Annotation of cvsweb/cvsweb.conf, Revision 3.67
3.1 knu 1: # -*-perl-*-
2: # Configuration of cvsweb.cgi, the
3: # CGI interface to CVS Repositories.
4: #
5: # (c) 1998-1999 H. Zeller <zeller@think.de>
6: # 1999 H. Nordstrom <hno@hem.passagen.se>
3.30 knu 7: # 2000-2002 A. MUSHA <knu@FreeBSD.org>
3.65 scop 8: # 2002-2004 V. Skyttä <scop@FreeBSD.org>
3.1 knu 9: # based on work by Bill Fenner <fenner@FreeBSD.org>
3.28 knu 10: #
3.30 knu 11: # $FreeBSD$
3.27 knu 12: # $Id: cvsweb.conf,v 3.29 2001/07/23 09:14:52 hzeller Exp $
3.28 knu 13: # $Idaemons: /home/cvs/cvsweb/cvsweb.conf,v 3.27 2001/08/01 09:48:39 knu Exp $
3.1 knu 14: #
15: ###
16:
3.19 knu 17: # Set the path for the following commands:
3.47 scop 18: # cvs, rlog, rcsdiff
3.19 knu 19: # gzip (if you enable $allow_compress)
3.47 scop 20: # (g)tar, zip (if you enable $allow_tar)
3.42 scop 21: # cvsgraph (if you enable $allow_graph)
3.58 scop 22: #
3.19 knu 23: $command_path = '/bin:/usr/bin:/usr/local/bin';
24:
3.47 scop 25: # Search the above directories for each command (prefer gtar over tar).
3.58 scop 26: #
3.48 scop 27: for (qw(cvs rlog rcsdiff gzip gtar zip cvsgraph enscript)) {
3.26 knu 28: $CMD{$_} = search_path($_);
3.19 knu 29: }
3.47 scop 30: $CMD{tar} = delete($CMD{gtar}) if $CMD{gtar};
31: $CMD{tar} ||= search_path('tar');
3.19 knu 32:
3.53 scop 33: # CVS roots
34: #
35: # CVSweb can handle several CVS repositories at once. Enter short (internal)
36: # symbolic repository names, their names in the UI and the actual locations
37: # here. The repositories will be listed in the order they're specified here.
38: #
39: # Note that only local repositories are currently supported. Things like
40: # :pserver:someone@xyz.com:/data/cvsroot won't work.
41: #
42: # 'symbolic_name' => ['Name to display', '/path/to/cvsroot']
43: #
3.17 knu 44: @CVSrepositories = (
3.53 scop 45: 'local' => ['Local Repository', '/home/cvs'],
46: # 'freebsd' => ['FreeBSD', '/home/ncvs'],
47: # 'openbsd' => ['OpenBSD', '/home/ncvs'],
48: # 'netbsd' => ['NetBSD', '/home/ncvs'],
49: # 'ruby' => ['Ruby', '/var/anoncvs/ruby'],
3.26 knu 50: );
3.1 knu 51:
3.53 scop 52: # The default CVS root. Note that @CVSrepositories is list, not a hash,
53: # so you'll want to use 2 * 0-based-index-number here; or set this directly
54: # to the default's symbolic name. Unless specified, the first valid one in
55: # @CVSrepositories is used as the default.
56: #
57: # For example:
58: #
59: #$cvstreedefault = $CVSrepositories[2 * 0];
60: #$cvstreedefault = 'local';
3.1 knu 61:
62: ##############
3.15 knu 63: # Bug tracking system options
64: # ("PR" means Problem Report, as in GNATS)
3.1 knu 65: ##############
3.15 knu 66: #@prcategories = qw(
3.26 knu 67: # advocacy
68: # alpha
69: # bin
70: # conf
71: # docs
72: # gnu
73: # i386
74: # kern
75: # misc
76: # pending
77: # ports
78: # sparc
79: #);
80:
3.15 knu 81: #$prcgi = "http://www.FreeBSD.org/cgi/query-pr.cgi?pr=%s";
3.58 scop 82:
3.15 knu 83: #$prkeyword = "PR";
3.1 knu 84:
85: ##############
3.15 knu 86: # Manual gateway
3.8 knu 87: ##############
3.26 knu 88: $mancgi =
89: "http://www.FreeBSD.org/cgi/man.cgi?apropos=0&sektion=%s&query=%s&manpath=FreeBSD+5.0-current&format=html";
3.1 knu 90:
91: ##############
92: # Defaults for UserSettings
93: ##############
94: %DEFAULTVALUE = (
3.26 knu 95:
96: # sortby: File sort order
97: # file Sort by filename
98: # rev Sort by revision number
99: # date Sort by commit date
100: # author Sort by author
101: # log Sort by log message
102: "sortby" => "file",
103:
3.46 scop 104: # ignorecase: ignore case in sorts (filenames, authors, log messages)
105: # 0 Honour case
106: # 1 Ignore case
107: "ignorecase" => "0",
108:
3.26 knu 109: # hideattic: Hide or show files in Attic
110: # 1 Hide files in Attic
111: # 0 Show files in Attic
112: "hideattic" => "1",
113:
114: # logsort: Sort order for CVS logs
115: # date Sort revisions by date
116: # rev Sort revision by revision number
117: # cvs Don't sort them. Same order as CVS/RCS shows them.
118: "logsort" => "date",
119:
120: # f: Default diff format
121: # h Human readable
122: # u Unified diff
123: # c Context diff
124: # s Side by side
3.55 scop 125: # uc Unified diff, enscript colored
126: # cc Context diff, enscript colored
127: # sc Side by side, enscript colored
3.26 knu 128: "f" => "u",
129:
130: # hidecvsroot: Don't show the CVSROOT directory
131: # 1 Hide CVSROOT directory
132: # 0 Show CVSROOT directory
133: "hidecvsroot" => "0",
134:
135: # hidenonreadable: Don't show entries which cannot be read
136: # 1 Hide non-readable entries
137: # 0 Show non-readable entries
138: "hidenonreadable" => "1",
3.49 scop 139:
140: # ln: Show line numbers in HTMLized views
141: # 1 Show line numbers
142: # 0 Don't show line numbers
143: "ln" => "0",
3.1 knu 144: );
145:
146: ##############
147: # some layout stuff
148: ##############
149:
150: # Wanna have a logo on the page ?
3.58 scop 151: #
3.60 scop 152: $logo = '<p><img src="/icons/apache_pb.gif" alt="Powered by Apache" /></p>';
3.1 knu 153:
3.34 scop 154: # The title of the Page on startup. This will be put inside a <h1> tag.
3.58 scop 155: #
3.1 knu 156: $defaulttitle = "CVS Repository";
157:
3.34 scop 158: # The address is shown on the footer. This will be put inside a <address> tag.
3.58 scop 159: #
3.34 scop 160: $address = '<span style="font-size: smaller">FreeBSD-CVSweb <<a href="mailto:freebsd-cvsweb@FreeBSD.org">freebsd-cvsweb@FreeBSD.org</a>></span>';
3.1 knu 161:
162: $long_intro = <<EOT;
163: <p>
164: This is a WWW interface for CVS Repositories.
3.67 ! scop 165: You can browse the file hierarchy by following directory links (which
! 166: have slashes after them, e.g. <code>src/</code>).
! 167: If you follow a link to a file, you will see its revision history.
! 168: Following a link labeled with a revision number will display that
! 169: revision of the file. In the revision history view, there is a link
! 170: near each revision to display diffs between that revision and the
! 171: previous one, and a form at the bottom of the page that allows you to
3.1 knu 172: display diffs between arbitrary revisions.
3.67 ! scop 173: </p><p>
3.33 scop 174: This script has been written by Bill Fenner and improved by Henner Zeller,
175: Henrik Nordström, and Ken Coar, then Akinori MUSHA brought it
3.22 knu 176: back to FreeBSD community and made further improvements; it is covered
3.33 scop 177: by <a
178: href="http://www.opensource.org/licenses/bsd-license.html">The BSD Licence</a>.
3.67 ! scop 179: </p><p>
3.1 knu 180: If you would like to use this CGI script on your own web server and
3.67 ! scop 181: CVS tree, download the latest version from <<a
3.33 scop 182: href="http://www.FreeBSD.org/projects/cvsweb.html">http://www.FreeBSD.org/projects/cvsweb.html</a>>.
3.67 ! scop 183: </p><p>
3.33 scop 184: Feel free to send any patches, suggestions and comments to the FreeBSD-CVSweb
185: mailing list at
186: <<a
187: href="mailto:freebsd-cvsweb\@FreeBSD.org">freebsd-cvsweb\@FreeBSD.org</a>>.
3.1 knu 188: </p>
189: EOT
190:
191: $short_instruction = <<EOT;
192: <p>
193: Click on a directory to enter that directory. Click on a file to display
3.32 scop 194: its revision history and to get a chance to display diffs between revisions.
3.1 knu 195: </p>
196: EOT
197:
3.42 scop 198: # Icons for the web UI. If ICON-URL is empty, the TEXT representation is
199: # used. If you do not want to have a tool tip for an icon, set TEXT empty.
200: # The width and height of the icon allow the browser to correctly display
201: # the table while still loading the icons. If these icons are too large,
202: # check out the "mini" versions in the icons/ directory; they have a
203: # width/height of 16/16.
3.58 scop 204: #
3.42 scop 205: my $iconsdir = '/icons';
206:
3.51 scop 207: # format: TEXT ICON-URL width height
3.26 knu 208: %ICONS = (
3.51 scop 209: back => [('[BACK]', "$iconsdir/back.gif", 20, 22)],
210: dir => [('[DIR]', "$iconsdir/dir.gif", 20, 22)],
211: file => [('[TXT]', "$iconsdir/text.gif", 20, 22)],
212: binfile => [('[BINARY]', "$iconsdir/binary.gif", 20, 22)],
213: graph => [('[GRAPH]', "$iconsdir/minigraph.png", 16, 16)],
3.26 knu 214: );
3.15 knu 215: undef $iconsdir;
3.1 knu 216:
3.43 scop 217: # An URL where to find the CSS.
3.58 scop 218: #
3.43 scop 219: $cssurl = '/css/cvsweb.css';
220:
3.1 knu 221: # the length to which the last logentry should
222: # be truncated when shown in the directory view
3.58 scop 223: #
3.1 knu 224: $shortLogLen = 80;
225:
226: # Show author of last change
3.58 scop 227: #
3.1 knu 228: $show_author = 1;
229:
230: ##############
231: # table view for directories
232: ##############
233:
3.40 scop 234: # Cell padding for directory table
3.58 scop 235: #
3.1 knu 236: $tablepadding = 2;
237:
238: # Modules in the repository that should not be displayed, either by default
239: # nor by explicit path specification.
240: #
3.27 knu 241: @HideModules = (
242: # "^my/secret/module",
243: );
244:
245: # Files matching these pathnames shouldn't be checked out with cvsweb,
246: # since they may contain sensitive information. Simple file name based
247: # filter. Often, the CVSROOT/passwd is exposed and some people tend
248: # to check in their .cvspass, though this is a bad idea. These files
249: # shouldn't be readable by default. Thanks to Damian Gryski to point
250: # this out.
3.36 scop 251: # Note that this affects only files, not directories.
3.58 scop 252: #
3.27 knu 253: @ForbiddenFiles = (
254: "^CVSROOT/passwd\$", # CVSROOT/passwd should not be cvs add'ed, though
255: "/\\.cvspass\$", # Ditto. Just in case.
256: );
3.1 knu 257:
258: # Use CVSROOT/CVSROOT/descriptions for describing the directories/modules
259: # See INSTALL section 8
260: #
261: $use_descriptions = 0;
262:
263: ##############
264: # Human Readable Diff
265: ##############
266:
267: # (c) 1998 H. Zeller <zeller@think.de>
268: #
269: # Generates two columns of color encoded
270: # diff; much like xdiff or emacs-ediff mode.
271: #
272: # The diff-stuff is a piece of code I once made for
273: # cvs2html which is under GPL,
274: # see http://www.sslug.dk/cvs2html
275: # (c) 1997/98 Peter Toft <pto@sslug.imm.dtu.dk>
276: #
277: # some parameters to screw:
278: ##
279:
280: # make lines breakable so that the columns do not
281: # exceed the width of the browser
3.58 scop 282: #
3.1 knu 283: $hr_breakable = 1;
284:
3.4 knu 285: # give out function names in diffs
3.1 knu 286: # this just makes sense if we have C-files, otherwise
287: # diff's heuristic doesn't work well ..
288: # ( '-p' option to diff)
3.58 scop 289: #
3.4 knu 290: $showfunc = 1;
3.1 knu 291:
292: # For each pair of regexps, files that match the first regexp will be diff'ed
293: # with an '-F' option with the second regexp.
3.58 scop 294: #
3.4 knu 295: %funcline_regexp = (
3.26 knu 296: "\\.(4th|fr)\$" => "\\(^\\|[ \t]\\): ",
297: "\\.rb\$" => "^[\t ]*\\(class\\|module\\|def\\) ",
298: );
3.1 knu 299:
300: # ignore whitespaces for human readable diffs
301: # (indendation and stuff ..)
302: # ( '-w' option to diff)
3.58 scop 303: #
3.7 knu 304: $hr_ignwhite = 0;
3.1 knu 305:
306: # ignore diffs which are caused by
307: # keyword-substitution like $Id - Stuff
308: # ( '-kk' option to rcsdiff)
3.58 scop 309: #
3.1 knu 310: $hr_ignkeysubst = 1;
311:
312: # the width of the textinput of the
313: # request-diff-form
3.58 scop 314: #
3.1 knu 315: $inputTextSize = 12;
316:
317: ##############
318: # Mime Types
319: ##############
320:
3.52 scop 321: # The MIME type lookup works like this:
322: # 1) Look up from %MTYPES below with the file name extension (suffix).
323: # 2) If not found, use the MIME::Types(3) module if it's available.
324: # 3) If not found, lookup from the $mime_types file (see below).
325: # 4) If not found, try %MTYPES{'*'}.
326: # 5) If not found, use 'application/octet-stream' if the file's keyword
327: # substitution mode is b (ie. the file was checked in as binary to CVS),
328: # 'text/plain' otherwise.
3.1 knu 329:
3.52 scop 330: # Quick MIME type lookup; maps filename extensions to MIME types.
331: # Add common mappings here for fast lookup. You can also use this
332: # to override MIME::Types(3) or the $mime_types file (see below).
3.58 scop 333: #
3.1 knu 334: %MTYPES = (
3.26 knu 335: "html" => "text/html",
336: "shtml" => "text/html",
337: "gif" => "image/gif",
338: "jpeg" => "image/jpeg",
339: "jpg" => "image/jpeg",
340: "png" => "image/png",
341: "xpm" => "image/xpm",
3.52 scop 342: # "*" => "text/plain",
3.26 knu 343: );
3.52 scop 344:
345: # The traditional mime.types file, eg. the one from Apache is fine.
346: # See above where this gets used.
3.58 scop 347: #
3.52 scop 348: $mime_types = '/usr/local/etc/apache/mime.types';
3.11 knu 349:
3.56 scop 350: # Charset appended to the Content-Type HTTP header for text/* MIME types.
351: # Note that the web server may default to some charset which may take effect
352: # if you leave this parameter empty or unset.
353: # For Apache, see the AddDefaultCharset directive.
354: #
3.13 knu 355: $charset = '';
3.26 knu 356:
3.13 knu 357: # e.g.
358: #$charset = $where =~ m,/ru[/_-], ? 'koi8-r'
359: # : $where =~ m,/zh[/_-], ? 'big5'
360: # : $where =~ m,/ja[/_-], ? 'x-euc-jp'
361: # : $where =~ m,/ko[/_-], ? 'x-euc-kr'
362: # : 'iso-8859-1';
3.29 knu 363:
364: # Output filter
3.58 scop 365: #
3.29 knu 366: $output_filter = '';
367:
368: # e.g.
369: ## unify/convert Japanese code into EUC-JP
370: #$output_filter= '/usr/local/bin/nkf -e';
3.1 knu 371:
372: ##############
373: # Misc
374: ##############
3.58 scop 375:
3.50 scop 376: # Allow annotation of files. See also @annotate_options below.
3.58 scop 377: #
3.1 knu 378: $allow_annotate = 1;
379:
380: # allow pretty-printed version of files
3.58 scop 381: #
3.1 knu 382: $allow_markup = 1;
383:
3.31 knu 384: # allow extra hlink formatting (such as PR xrefs) in logs
3.58 scop 385: #
3.31 knu 386: $allow_log_extra = 1; # default: enabled
387:
388: # allow extra hlink formatting (such as PR xrefs) in directories
3.58 scop 389: #
3.31 knu 390: $allow_dir_extra = 1;
391:
392: # allow extra hlink formatting in source code/formatted diff views
3.58 scop 393: #
3.31 knu 394: $allow_source_extra = 1;
395:
3.1 knu 396: # allow compression with gzip
397: # of output if the Browser accepts
398: # it (HTTP_ACCEPT_ENCODING=gzip)
399: # [make sure to have gzip in the path]
3.58 scop 400: #
3.16 knu 401: $allow_compress = 0;
3.1 knu 402:
403: # Make use of javascript functions.
404: # This way you can select one of your CVSroot
405: # without pressing 'Go' (.. if you do have more
406: # than one CVSROOT defined)
3.58 scop 407: #
3.1 knu 408: $use_java_script = 1;
409:
3.58 scop 410: # Whether to show a form for setting options in the directory view.
411: #
412: $edit_option_form = 1;
3.1 knu 413:
414: # If you have files which automatically refers to other files
415: # (such as HTML) then this allows you to browse the checked
416: # out files as if outside CVS.
3.58 scop 417: #
3.1 knu 418: $checkout_magic = 1;
419:
420: # Show last changelog message for sub directories
421: # The current implementation makes many assumptions and may show the
422: # incorrect file at some times. The main assumption is that the last
423: # modified file has the newest filedate. But some CVS operations
424: # touches the file without even when a new version is't checked in,
425: # and TAG based browsing essientially puts this out of order, unless
426: # the last checkin was on the same tag as you are viewing.
427: # Enable this if you like the feature, but don't rely on correct results.
3.58 scop 428: #
3.1 knu 429: $show_subdir_lastmod = 0;
430:
431: # Show CVS log when viewing file contents
3.58 scop 432: #
3.1 knu 433: $show_log_in_markup = 1;
434:
3.13 knu 435: # Preformat when viewing file contents. This should be turned off
436: # when you have files in the repository that are in a multibyte
437: # encoding which uses HTML special characters ([<>&"]) as part of a
438: # multi-byte character. (such as iso-2022-jp, ShiftJIS, etc.)
439: # Otherwise those files will get screwed up in markup.
3.58 scop 440: #
3.59 scop 441: # Note: enscript(1) highlighting is preferred over the built-in preformatting,
442: # ie. this has no effect if $allow_enscript is true and enscript can highlight
443: # the file.
444: #
445: $preformat_in_markup = 0;
3.13 knu 446:
3.1 knu 447: # Tabstop used to expand tabs in colored diffs. If undefined then
448: # tabs are always expanded to 8 spaces.
3.58 scop 449: #
3.1 knu 450: $tabstop = 8;
451:
3.58 scop 452: # If you wish to display absolute times in your local timezone,
3.1 knu 453: # then define mytz and fill in the strings for your standard and
454: # daylight time. Note that you must also make sure the system
455: # timezone is correctly set.
3.58 scop 456: #
457: #@mytz=("EST", "EDT");
3.1 knu 458:
459: # cvsweb is friendly to caches by indicating a suitable
460: # last-modified timestamp. Doing this uses slightly more
461: # CPU so you might want to disable it if you have a slow
462: # server
3.58 scop 463: #
3.1 knu 464: $use_moddate = 1;
465:
3.45 scop 466: # Maximum number of filenames to pass to rlog(1) in one command.
467: # If you see "Failed to spawn GNU rlog" errors with directories containing
468: # lots of files, experiment by setting this to different values and see if
469: # the error still occurs. A good value to start from would be eg. 200.
470: # Just comment this out if you're not bitten by the problem.
3.57 scop 471: #
3.45 scop 472: #$file_list_len = 200;
473:
3.57 scop 474: # Allows graphical representations of file logs with CvsGraph if set to a
475: # true value.
476: #
477: $allow_cvsgraph = $CMD{cvsgraph} ? 1 : 0;
478:
3.42 scop 479: # Path to the CvsGraph configuration file. Only used if $allow_cvsgraph
480: # is true. Leave this empty or comment it out to make cvsgraph(1) use its
481: # default configuration file.
3.57 scop 482: #
3.42 scop 483: #$cvsgraph_config = "/etc/cvsgraph.conf";
3.13 knu 484:
3.57 scop 485: # Whether to allow downloading a tarball or a zip of the current directory.
486: # While downloading of the entire repository is disallowed, depending on
487: # the directory this may take a lot of time and disk space. For some CVS
488: # versions, the user account running cvsweb needs write access to
489: # CVSROOT/val-tags. See also the tar, gzip and zip options below.
490: #
491: #$allow_tar = (($CMD{tar} && $CMD{gzip}) || $CMD{zip}) ? 1 : 0;
492:
3.13 knu 493: # Options to pass to tar(1).
3.57 scop 494: # For example: @tar_options = qw(--ignore-failed-read);
495: # GNU tar has some useful options against unexpected errors.
496: # Other useful options include "--owner=0" and "--group=0", see
497: # the tar(1) (or gtar(1)) manpage for details.
498: #
3.15 knu 499: @tar_options = qw();
3.26 knu 500:
3.19 knu 501: # Options to pass to gzip(1) when compressing a tarball to download.
3.57 scop 502: # For example: @gzip_options = qw(-3);
503: # Try lower compression level than 6 (default) if you want faster
504: # compression, or higher for better compression.
505: #
3.19 knu 506: @gzip_options = qw();
3.26 knu 507:
3.25 knu 508: # Options to pass to zip(1) when compressing a zip archive to download.
3.57 scop 509: # For example: @zip_options = qw(-3);
510: # Try lower compression level than 6 (default) if you want faster
511: # compression, or higher for better compression.
512: #
3.47 scop 513: @zip_options = qw(-q);
3.26 knu 514:
3.13 knu 515: # Options to pass to cvs(1).
3.63 scop 516: # For cvs versions 1.11 to 1.11.6 (broken in < 1.11, removed in 1.11.7), you
517: # can use the '-l' option to prevent cvs from writing to the history file.
518: # For other cvs versions, either suppress history logging by using the
519: # LogHistory parameter in CVSROOT/config or make sure that the cvsweb user
520: # can read and write to CVSROOT/history.
3.61 scop 521: # FreeBSD's and OpenBSD's cvs(1) has long since supported -R (read only access
522: # mode) option, which considerably speeds up checkouts over NFS. For other
3.62 scop 523: # platforms, the -R option and the CVSREADONLYFS environment variable are
524: # available in cvs >= 1.12.1. A similar effect is provided by -u on NetBSD.
3.57 scop 525: #
3.35 scop 526: @cvs_options = qw(-lf);
3.47 scop 527: push @cvs_options, '-R' if ($^O eq 'freebsd' || $^O eq 'openbsd');
528: push @cvs_options, '-u' if ($^O eq 'netbsd');
3.62 scop 529: # Only affects cvs >= 1.12.1, but doesn't hurt older ones.
530: $ENV{CVSREADONLYFS} = 1 unless exists($ENV{CVSREADONLYFS});
3.26 knu 531:
3.39 scop 532: # Options to pass to the 'cvs annotate' command, usually the normal
533: # @cvs_options are good enough here.
3.57 scop 534: # To make annotate work against a read only repository, add -n, ie.:
535: # @annotate_options = (@cvs_options, '-n');
536: #
3.39 scop 537: @annotate_options = @cvs_options;
538:
3.54 scop 539: # Options to pass to rcsdiff(1).
540: # Probably the only useful one here is -q (suppress diagnostic output).
3.57 scop 541: #
3.54 scop 542: @rcsdiff_options = qw(-q);
3.48 scop 543:
544: # Enables syntax highlighting using GNU Enscript if set.
3.64 scop 545: # You will need GNU Enscript version 1.6.3 or newer for this to work.
3.57 scop 546: #
3.48 scop 547: #$allow_enscript = $CMD{enscript} ? 1 : 0;
548:
549: # Options to pass to enscript(1).
3.54 scop 550: # Do not set the -q, --language, -o or --highlight options here.
3.48 scop 551: # Most useful styles are probably emacs, emacs_verbose and msvc.
3.57 scop 552: #
3.48 scop 553: @enscript_options = qw(--style=emacs --color=1);
554:
555: # Enscript highlight rule to filename regex mappings. The set of useful
556: # mappings depends on what highlight rules the system has installed.
3.57 scop 557: #
3.48 scop 558: %enscript_types =
559: (
560: 'ada' => qr/\.ad(s|b|a)$/o,
561: 'asm' => qr/\.[Ss]$/o,
562: 'awk' => qr/\.awk$/o,
563: 'bash' => qr/\.(bash(_profile|rc)|inputrc)$/o,
564: 'c' => qr/\.(c|h)$/o,
565: 'changelog' => qr/^changelog$/io,
566: 'cpp' => qr/\.(c\+\+|C|H|cpp|cc|cxx)$/o,
567: 'csh' => qr/\.(csh(rc)?|log(in|out)|history)$/o,
568: 'elisp' => qr/\.e(l|macs)$/o,
569: 'fortran' => qr/\.[fF]$/o,
570: 'haskell' => qr/\.(l?h|l?g)s$/o,
571: 'html' => qr/\.x?html?$/o,
572: 'idl' => qr/\.idl$/o,
573: 'inf' => qr/\.inf$/io,
574: 'java' => qr/\.java$/o,
575: 'javascript' => qr/\.js$/o,
576: 'ksh' => qr/\.ksh$/o,
577: 'm4' => qr/\.m4$/o,
578: 'makefile' => qr/((GNU)?[Mm]akefile.*|\.(ma?ke?|am)$)/o,
579: 'matlab' => qr/\.m$/o,
580: 'nroff' => qr/\.man$/o,
581: 'pascal' => qr/\.p(as|p)?$/io,
582: 'perl' => qr/\.p(m|(er?)l)$/io,
583: 'postscript' => qr/\.e?ps$/io,
584: 'python' => qr/\.py$/o,
585: 'rfc' => qr/\b((rfc|draft)\..*\.txt)$/o,
586: 'scheme' => qr/\.(scm|scheme)$/o,
587: 'sh' => qr/\.sh$/o,
588: 'skill' => qr/\.il$/o,
589: 'sql' => qr/\.sql$/o,
590: 'states' => qr/\.st$/o,
591: 'synopsys' => qr/\.s(cr|yn(th)?)$/o,
592: 'tcl' => qr/\.tcl$/o,
593: 'tcsh' => qr/\.tcshrc$/o,
594: 'tex' => qr/\.tex$/o,
595: 'vba' => qr/\.vba$/o,
596: 'verilog' => qr/\.(v|vh)$/o,
597: 'vhdl' => qr/\.vhdl?$/o,
598: 'vrml' => qr/\.wrl$/o,
599: 'wmlscript' => qr/\.wmls(cript)?$/o,
600: 'zsh' => qr/\.(zsh(env|rc)|z(profile|log(in|out)))$/o,
601: );
3.39 scop 602:
3.12 knu 603: 1;
3.26 knu 604:
3.57 scop 605: # EOF
CVSweb