[BACK]Return to cvsweb.conf CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / cvsweb

Annotation of cvsweb/cvsweb.conf, Revision 3.85

3.76      scop        1: #                                                                  -*- perl -*-
                      2: # Configuration of cvsweb.cgi, a web interface to CVS repositories.
3.1       knu         3: #
                      4: # (c) 1998-1999 H. Zeller    <zeller@think.de>
                      5: #     1999      H. Nordstrom <hno@hem.passagen.se>
3.30      knu         6: #     2000-2002 A. MUSHA     <knu@FreeBSD.org>
3.65      scop        7: #     2002-2004 V. Skyttä    <scop@FreeBSD.org>
3.1       knu         8: #          based on work by Bill Fenner  <fenner@FreeBSD.org>
3.28      knu         9: #
3.30      knu        10: # $FreeBSD$
3.27      knu        11: # $Id: cvsweb.conf,v 3.29 2001/07/23 09:14:52 hzeller Exp $
3.28      knu        12: # $Idaemons: /home/cvs/cvsweb/cvsweb.conf,v 3.27 2001/08/01 09:48:39 knu Exp $
3.1       knu        13: #
                     14:
3.19      knu        15: # Set the path for the following commands:
3.47      scop       16: #   cvs, rlog, rcsdiff
3.19      knu        17: #   gzip (if you enable $allow_compress)
3.47      scop       18: #   (g)tar, zip (if you enable $allow_tar)
3.42      scop       19: #   cvsgraph (if you enable $allow_graph)
3.71      scop       20: #   enscript (if you enable $allow_enscript)
3.58      scop       21: #
3.73      scop       22: @command_path = qw(/bin /usr/bin /usr/local/bin);
3.19      knu        23:
3.47      scop       24: # Search the above directories for each command (prefer gtar over tar).
3.58      scop       25: #
3.71      scop       26: for (qw(cvs rlog rcsdiff gzip gtar zip cvsgraph enscript)) {
3.26      knu        27:        $CMD{$_} = search_path($_);
3.19      knu        28: }
3.47      scop       29: $CMD{tar}   = delete($CMD{gtar}) if $CMD{gtar};
                     30: $CMD{tar} ||= search_path('tar');
3.19      knu        31:
3.53      scop       32: # CVS roots
                     33: #
                     34: # CVSweb can handle several CVS repositories at once.  Enter short (internal)
                     35: # symbolic repository names, their names in the UI and the actual locations
                     36: # here.  The repositories will be listed in the order they're specified here.
                     37: #
3.76      scop       38: # CVSweb will also load per-cvsroot configuration files if they exist.
                     39: # The symbolic_name (see below) of the CVS root will be concatenated into the
                     40: # name of the main (this) configuration file along with a hyphen, and that
                     41: # file will be loaded for that particular CVS root.  For examples, see
                     42: # cvsweb.conf-* in the CVSweb distribution.
                     43: #
3.53      scop       44: # Note that only local repositories are currently supported.  Things like
                     45: # :pserver:someone@xyz.com:/data/cvsroot won't work.
                     46: #
                     47: # 'symbolic_name' => ['Name to display',  '/path/to/cvsroot']
                     48: #
3.17      knu        49: @CVSrepositories = (
3.78      scop       50:         'local'   => ['Local Repository', '/var/cvs'],
                     51: #       'freebsd' => ['FreeBSD',          '/var/ncvs'],
                     52: #       'openbsd' => ['OpenBSD',          '/var/ncvs'],
                     53: #       'netbsd'  => ['NetBSD',           '/var/ncvs'],
3.53      scop       54: #       'ruby'    => ['Ruby',             '/var/anoncvs/ruby'],
3.26      knu        55: );
3.1       knu        56:
3.53      scop       57: # The default CVS root.  Note that @CVSrepositories is list, not a hash,
                     58: # so you'll want to use 2 * 0-based-index-number here; or set this directly
                     59: # to the default's symbolic name. Unless specified, the first valid one in
                     60: # @CVSrepositories is used as the default.
                     61: #
                     62: # For example:
                     63: #
                     64: #$cvstreedefault = $CVSrepositories[2 * 0];
                     65: #$cvstreedefault = 'local';
3.1       knu        66:
3.76      scop       67: # Bug tracking system linking options ("PR" means Problem Report, as in GNATS)
                     68: #
3.15      knu        69: #@prcategories = qw(
3.26      knu        70: #    advocacy
                     71: #    alpha
                     72: #    bin
                     73: #    conf
                     74: #    docs
                     75: #    gnu
                     76: #    i386
                     77: #    kern
                     78: #    misc
                     79: #    pending
                     80: #    ports
                     81: #    sparc
                     82: #);
3.15      knu        83: #$prcgi = "http://www.FreeBSD.org/cgi/query-pr.cgi?pr=%s";
                     84: #$prkeyword = "PR";
3.1       knu        85:
3.76      scop       86: # Manual gateway linking.
                     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:
3.76      scop       91: # Defaults for user options.
                     92: #
3.1       knu        93: %DEFAULTVALUE = (
3.26      knu        94:
3.76      scop       95:     # sortby: File sort order
                     96:     #   file   Sort by filename
                     97:     #   rev    Sort by revision number
                     98:     #   date   Sort by commit date
                     99:     #   author Sort by author
                    100:     #   log    Sort by log message
                    101:     "sortby" => "file",
                    102:
                    103:     # ignorecase: Ignore case in sorts (filenames, authors, log messages)
                    104:     #   0      Honor case
                    105:     #   1      Ignore case
                    106:     "ignorecase" => "0",
                    107:
                    108:     # hideattic: Hide or show files in Attic
                    109:     #   1      Hide files in Attic
                    110:     #   0      Show files in Attic
                    111:     "hideattic" => "1",
                    112:
                    113:     # logsort: Sort order for CVS logs
                    114:     #   date   Sort revisions by date
                    115:     #   rev    Sort revision by revision number
                    116:     #   cvs    Don't sort them. Same order as CVS/RCS shows them.
                    117:     "logsort" => "date",
                    118:
                    119:     # f: Default diff format
                    120:     #   h      Human readable
                    121:     #   u      Unified diff
                    122:     #   c      Context diff
                    123:     #   s      Side by side
                    124:     #   uc     Unified diff, enscript colored (falls back to "u" w/o enscript)
                    125:     #   cc     Context diff, enscript colored (falls back to "c" w/o enscript)
                    126:     #   sc     Side by side, enscript colored (falls back to "s" w/o enscript)
                    127:     "f" => "u",
                    128:
                    129:     # hidecvsroot: Don't show the CVSROOT directory
                    130:     #   1      Hide CVSROOT directory
                    131:     #   0      Show CVSROOT directory
                    132:     "hidecvsroot" => "0",
                    133:
                    134:     # hidenonreadable: Don't show entries which cannot be read
                    135:     #   1      Hide non-readable entries
                    136:     #   0      Show non-readable entries
                    137:     "hidenonreadable" => "1",
                    138:
                    139:     # ln: Show line numbers in HTMLized views
                    140:     #   1      Show line numbers
                    141:     #   0      Don't show line numbers
                    142:     "ln" => "0",
3.1       knu       143: );
                    144:
3.76      scop      145: #
                    146: # Layout options (see also the included CSS file)
                    147: #
3.1       knu       148:
                    149: # Wanna have a logo on the page ?
3.58      scop      150: #
3.79      scop      151: #$logo = '<p><img src="/icons/apache_pb.gif" alt="Powered by Apache" /></p>';
3.1       knu       152:
3.79      scop      153: # The title of the Page on startup.  This will be put inside <h1> and <title>
                    154: # tags, and HTML escaped.
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 &lt;<a href="mailto:freebsd-cvsweb@FreeBSD.org">freebsd-cvsweb@FreeBSD.org</a>&gt;</span>';
3.1       knu       161:
                    162: $long_intro = <<EOT;
                    163: <p>
3.81      scop      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&ouml;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 &lt;<a
3.33      scop      182: href="http://www.FreeBSD.org/projects/cvsweb.html">http://www.FreeBSD.org/projects/cvsweb.html</a>&gt;.
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: &lt;<a
                    187: href="mailto:freebsd-cvsweb\@FreeBSD.org">freebsd-cvsweb\@FreeBSD.org</a>&gt;.
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.76      scop      221: # The length to which the last log entry should be truncated when shown
                    222: # in the directory view.
3.58      scop      223: #
3.1       knu       224: $shortLogLen = 80;
                    225:
3.76      scop      226: # Show author of last change?
3.58      scop      227: #
3.1       knu       228: $show_author = 1;
                    229:
3.76      scop      230: # Cell padding for directory table.
3.58      scop      231: #
3.1       knu       232: $tablepadding = 2;
                    233:
3.75      scop      234: # Regular expresions for files and directories which should be hidden.
                    235: # Each regexp is compared against a path relative to a CVS root, after
                    236: # stripping the trailing ",v" if present.  Matching files and directories
                    237: # are not displayed.
3.58      scop      238: #
3.27      knu       239: @ForbiddenFiles = (
3.74      scop      240:     qr|^CVSROOT/+passwd$|o, # CVSROOT/passwd should not be 'cvs add'ed though.
                    241:     qr|/\.cvspass$|o,       # Ditto.  Just in case.
3.75      scop      242:    #qr|^my/+secret/+dir|o,
3.27      knu       243: );
3.1       knu       244:
3.77      scop      245: # Use CVSROOT/descriptions for describing the directories/modules?
3.69      scop      246: # See INSTALL, section 9.
3.1       knu       247: #
                    248: $use_descriptions = 0;
                    249:
3.76      scop      250: #
                    251: # Human readable diff.
                    252: #
3.1       knu       253: # (c) 1998 H. Zeller <zeller@think.de>
                    254: #
3.76      scop      255: # Generates two columns of color encoded diff; much like xdiff or GNU Emacs'
                    256: # ediff-mode.
3.1       knu       257: #
3.76      scop      258: # The diff-stuff is a piece of code I once made for cvs2html which is under
                    259: # GPL, see http://www.sslug.dk/cvs2html
3.1       knu       260: # (c) 1997/98 Peter Toft <pto@sslug.imm.dtu.dk>
                    261:
3.76      scop      262: # Make lines breakable so that the columns do not exceed the width of the
                    263: # browser?
3.58      scop      264: #
3.1       knu       265: $hr_breakable = 1;
                    266:
3.80      scop      267: # Print function names in diffs (unified and context only).
                    268: # See the -p option in the diff(1) man page.
3.58      scop      269: #
3.4       knu       270: $showfunc = 1;
3.1       knu       271:
                    272: # For each pair of regexps, files that match the first regexp will be diff'ed
3.80      scop      273: # with an -F option using the second regexp (unified and context only).
                    274: # See the -F option in the diff(1) man page.
3.58      scop      275: #
3.4       knu       276: %funcline_regexp = (
3.74      scop      277:     qr/\.(?:4th|fr)$/o => "\\(^\\|[ \t]\\): ",
                    278:     qr/\.rb$/o         => "^[\t ]*\\(class\\|module\\|def\\) ",
3.26      knu       279: );
3.1       knu       280:
3.76      scop      281: # Ignore whitespace in human readable diffs? ('-w' option to diff)
3.58      scop      282: #
3.7       knu       283: $hr_ignwhite = 0;
3.1       knu       284:
3.76      scop      285: # Ignore diffs which are caused by keyword substitution, $Id and friends?
                    286: # ('-kk' option to rcsdiff)
3.58      scop      287: #
3.1       knu       288: $hr_ignkeysubst = 1;
                    289:
3.76      scop      290: # The width of the textinput of the "request diff" form.
3.58      scop      291: #
3.1       knu       292: $inputTextSize = 12;
3.70      scop      293:
                    294: # Custom per MIME type diff tools, used for comparing binary files such as
                    295: # spreadsheets, images etc.  Each key is a MIME type in lowercase.
                    296: # Each value is an array ref of available diff tools for that type, each of
                    297: # which is a hash ref with values (mandatory where default not listed):
                    298: #   name: the name to show in the UI for this diff type
                    299: #   cmd:  full path to executable
                    300: #   args: arguments as an array ref (not string!, defaults to no arguments)
                    301: #   type: output MIME type (defaults to text/plain)
                    302: #
                    303: %DIFF_COMMANDS = (
                    304:   #'text/xml' => [
                    305:   #  { name => 'XMLdiff',
                    306:   #    cmd  => $CMD{xmldiff},
                    307:   #  },
                    308:   #  { name => 'XMLdiff (XUpdate)',
                    309:   #    cmd  => $CMD{xmldiff},
                    310:   #    args => [ qw(-x) ],
                    311:   #    type => 'text/xml',
                    312:   #  },
                    313:   #],
                    314: );
3.1       knu       315:
3.76      scop      316: #
                    317: # Mime types
                    318: #
3.1       knu       319:
3.52      scop      320: # The MIME type lookup works like this:
                    321: # 1) Look up from %MTYPES below with the file name extension (suffix).
                    322: # 2) If not found, use the MIME::Types(3) module if it's available.
                    323: # 3) If not found, lookup from the $mime_types file (see below).
                    324: # 4) If not found, try %MTYPES{'*'}.
                    325: # 5) If not found, use 'application/octet-stream' if the file's keyword
                    326: #    substitution mode is b (ie. the file was checked in as binary to CVS),
                    327: #    'text/plain' otherwise.
3.1       knu       328:
3.52      scop      329: # Quick MIME type lookup; maps filename extensions to MIME types.
                    330: # Add common mappings here for fast lookup.  You can also use this
                    331: # to override MIME::Types(3) or the $mime_types file (see below).
3.58      scop      332: #
3.1       knu       333: %MTYPES = (
3.26      knu       334:        "html"  => "text/html",
                    335:        "shtml" => "text/html",
                    336:        "gif"   => "image/gif",
                    337:        "jpeg"  => "image/jpeg",
                    338:        "jpg"   => "image/jpeg",
                    339:        "png"   => "image/png",
                    340:        "xpm"   => "image/xpm",
3.52      scop      341: #      "*"     => "text/plain",
3.26      knu       342: );
3.52      scop      343:
                    344: # The traditional mime.types file, eg. the one from Apache is fine.
                    345: # See above where this gets used.
3.58      scop      346: #
3.52      scop      347: $mime_types = '/usr/local/etc/apache/mime.types';
3.11      knu       348:
3.56      scop      349: # Charset appended to the Content-Type HTTP header for text/* MIME types.
                    350: # Note that the web server may default to some charset which may take effect
                    351: # if you leave this parameter empty or unset.
3.69      scop      352: # For Apache, see also the AddDefaultCharset directive.
3.56      scop      353: #
3.13      knu       354: $charset = '';
3.26      knu       355:
3.13      knu       356: # e.g.
                    357: #$charset = $where =~ m,/ru[/_-], ? 'koi8-r'
                    358: #  : $where =~ m,/zh[/_-], ? 'big5'
                    359: #  : $where =~ m,/ja[/_-], ? 'x-euc-jp'
                    360: #  : $where =~ m,/ko[/_-], ? 'x-euc-kr'
                    361: #  : 'iso-8859-1';
3.29      knu       362:
                    363: # Output filter
3.58      scop      364: #
3.29      knu       365: $output_filter = '';
                    366:
                    367: # e.g.
                    368: ## unify/convert Japanese code into EUC-JP
                    369: #$output_filter= '/usr/local/bin/nkf -e';
3.1       knu       370:
                    371: ##############
                    372: # Misc
                    373: ##############
3.58      scop      374:
3.76      scop      375: # Allow annotation of files?  See also @annotate_options below.
3.58      scop      376: #
3.1       knu       377: $allow_annotate = 1;
                    378:
3.76      scop      379: # Allow HTMLized version of files?
3.58      scop      380: #
3.1       knu       381: $allow_markup = 1;
                    382:
3.76      scop      383: # Allow extra hyperlinking (such as PR cross-references) in logs?
3.58      scop      384: #
3.31      knu       385: $allow_log_extra = 1; # default: enabled
                    386:
3.76      scop      387: # Allow extra hyperlinking in directories?
3.58      scop      388: #
3.31      knu       389: $allow_dir_extra = 1;
                    390:
3.76      scop      391: # Allow extra hyperlinking in source code/formatted diff views?
3.58      scop      392: #
3.31      knu       393: $allow_source_extra = 1;
                    394:
3.76      scop      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.
3.58      scop      397: #
3.16      knu       398: $allow_compress = 0;
3.1       knu       399:
3.76      scop      400: # Use JavaScript in the UI?
3.58      scop      401: #
3.1       knu       402: $use_java_script = 1;
                    403:
3.76      scop      404: # Show a form for setting options in the directory view?
3.58      scop      405: #
                    406: $edit_option_form = 1;
3.1       knu       407:
3.77      scop      408: # Show last changelog message for subdirectories?
3.1       knu       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: # touches the file without even when a new version is't checked in,
                    413: # and TAG based browsing essientially puts this out of order, unless
                    414: # the last 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.
3.58      scop      416: #
3.1       knu       417: $show_subdir_lastmod = 0;
                    418:
3.76      scop      419: # Show CVS log when viewing file contents?
3.58      scop      420: #
3.1       knu       421: $show_log_in_markup = 1;
                    422:
3.77      scop      423: # Preformat when viewing file contents?  This should be turned off
3.13      knu       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: # multi-byte character. (such as iso-2022-jp, ShiftJIS, etc.)
                    427: # Otherwise those files will get screwed up in markup.
3.58      scop      428: #
3.59      scop      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 = 0;
3.13      knu       434:
3.1       knu       435: # Tabstop used to expand tabs in colored diffs. If undefined then
                    436: # tabs are always expanded to 8 spaces.
3.58      scop      437: #
3.1       knu       438: $tabstop = 8;
                    439:
3.58      scop      440: # If you wish to display absolute times in your local timezone,
3.82      scop      441: # then define @mytz and fill in the strings for your standard and
3.1       knu       442: # daylight time. Note that you must also make sure the system
                    443: # timezone is correctly set.
3.58      scop      444: #
                    445: #@mytz=("EST", "EDT");
3.1       knu       446:
3.82      scop      447: # CVSweb is friendly to caches by sending the HTTP Last-Modified
                    448: # header corresponding to the sent content.  In the case of a
                    449: # checkout, this may require running rcslog on the file solely for the
                    450: # purpose of retrieving the timestamp to be sent.  If you have a slow
                    451: # server, you may turn this off for a small performance gain.
3.58      scop      452: #
3.1       knu       453: $use_moddate = 1;
                    454:
3.45      scop      455: # Maximum number of filenames to pass to rlog(1) in one command.
                    456: # If you see "Failed to spawn GNU rlog" errors with directories containing
                    457: # lots of files, experiment by setting this to different values and see if
                    458: # the error still occurs.  A good value to start from would be eg. 200.
                    459: # Just comment this out if you're not bitten by the problem.
3.57      scop      460: #
3.45      scop      461: #$file_list_len = 200;
                    462:
3.79      scop      463: # Allow graphical representations of file revisions and branches with CvsGraph?
3.57      scop      464: #
                    465: $allow_cvsgraph = $CMD{cvsgraph} ? 1 : 0;
                    466:
3.42      scop      467: # Path to the CvsGraph configuration file.  Only used if $allow_cvsgraph
                    468: # is true.  Leave this empty or comment it out to make cvsgraph(1) use its
3.84      scop      469: # default configuration file.  Note that CVSweb will override some of the
                    470: # settings in the configuration file with command line options, see
                    471: # doGraph() and doGraphView() in cvsweb.cgi for details.
3.57      scop      472: #
3.42      scop      473: #$cvsgraph_config = "/etc/cvsgraph.conf";
3.13      knu       474:
3.57      scop      475: # Whether to allow downloading a tarball or a zip of the current directory.
                    476: # While downloading of the entire repository is disallowed, depending on
                    477: # the directory this may take a lot of time and disk space.  For some CVS
3.69      scop      478: # versions, the user account running CVSweb needs write access to
3.57      scop      479: # CVSROOT/val-tags.  See also the tar, gzip and zip options below.
                    480: #
                    481: #$allow_tar = (($CMD{tar} && $CMD{gzip}) || $CMD{zip}) ? 1 : 0;
                    482:
3.13      knu       483: # Options to pass to tar(1).
3.57      scop      484: # For example: @tar_options = qw(--ignore-failed-read);
                    485: # GNU tar has some useful options against unexpected errors.
                    486: # Other useful options include "--owner=0" and "--group=0", see
                    487: # the tar(1) (or gtar(1)) manpage for details.
                    488: #
3.15      knu       489: @tar_options = qw();
3.26      knu       490:
3.19      knu       491: # Options to pass to gzip(1) when compressing a tarball to download.
3.57      scop      492: # For example: @gzip_options = qw(-3);
                    493: # Try lower compression level than 6 (default) if you want faster
                    494: # compression, or higher for better compression.
                    495: #
3.19      knu       496: @gzip_options = qw();
3.26      knu       497:
3.25      knu       498: # Options to pass to zip(1) when compressing a zip archive to download.
3.57      scop      499: # For example: @zip_options = qw(-3);
                    500: # Try lower compression level than 6 (default) if you want faster
                    501: # compression, or higher for better compression.
                    502: #
3.47      scop      503: @zip_options = qw(-q);
3.26      knu       504:
3.13      knu       505: # Options to pass to cvs(1).
3.63      scop      506: # For cvs versions 1.11 to 1.11.6 (broken in < 1.11, removed in 1.11.7), you
                    507: # can use the '-l' option to prevent cvs from writing to the history file.
                    508: # For other cvs versions, either suppress history logging by using the
3.69      scop      509: # LogHistory parameter in CVSROOT/config or make sure that the CVSweb user
3.63      scop      510: # can read and write to CVSROOT/history.
3.61      scop      511: # FreeBSD's and OpenBSD's cvs(1) has long since supported -R (read only access
                    512: # mode) option, which considerably speeds up checkouts over NFS.  For other
3.62      scop      513: # platforms, the -R option and the CVSREADONLYFS environment variable are
                    514: # available in cvs >= 1.12.1.  A similar effect is provided by -u on NetBSD.
3.57      scop      515: #
3.85    ! scop      516: @cvs_options = qw(-f);
3.47      scop      517: push @cvs_options, '-R' if ($^O eq 'freebsd' || $^O eq 'openbsd');
                    518: push @cvs_options, '-u' if ($^O eq 'netbsd');
3.62      scop      519: # Only affects cvs >= 1.12.1, but doesn't hurt older ones.
                    520: $ENV{CVSREADONLYFS} = 1 unless exists($ENV{CVSREADONLYFS});
3.26      knu       521:
3.39      scop      522: # Options to pass to the 'cvs annotate' command, usually the normal
                    523: # @cvs_options are good enough here.
3.57      scop      524: # To make annotate work against a read only repository, add -n, ie.:
                    525: # @annotate_options = (@cvs_options, '-n');
                    526: #
3.39      scop      527: @annotate_options = @cvs_options;
                    528:
3.54      scop      529: # Options to pass to rcsdiff(1).
                    530: # Probably the only useful one here is -q (suppress diagnostic output).
3.57      scop      531: #
3.54      scop      532: @rcsdiff_options = qw(-q);
3.48      scop      533:
                    534: # Enables syntax highlighting using GNU Enscript if set.
3.64      scop      535: # You will need GNU Enscript version 1.6.3 or newer for this to work.
3.57      scop      536: #
3.48      scop      537: #$allow_enscript = $CMD{enscript} ? 1 : 0;
                    538:
                    539: # Options to pass to enscript(1).
3.54      scop      540: # Do not set the -q, --language, -o or --highlight options here.
3.48      scop      541: # Most useful styles are probably emacs, emacs_verbose and msvc.
3.57      scop      542: #
3.48      scop      543: @enscript_options = qw(--style=emacs --color=1);
                    544:
                    545: # Enscript highlight rule to filename regex mappings.  The set of useful
                    546: # mappings depends on what highlight rules the system has installed.
3.57      scop      547: #
3.48      scop      548: %enscript_types =
                    549:   (
                    550:    'ada'          => qr/\.ad(s|b|a)$/o,
                    551:    'asm'          => qr/\.[Ss]$/o,
                    552:    'awk'          => qr/\.awk$/o,
                    553:    'bash'         => qr/\.(bash(_profile|rc)|inputrc)$/o,
                    554:    'c'            => qr/\.(c|h)$/o,
                    555:    'changelog'    => qr/^changelog$/io,
                    556:    'cpp'          => qr/\.(c\+\+|C|H|cpp|cc|cxx)$/o,
                    557:    'csh'          => qr/\.(csh(rc)?|log(in|out)|history)$/o,
                    558:    'elisp'        => qr/\.e(l|macs)$/o,
                    559:    'fortran'      => qr/\.[fF]$/o,
                    560:    'haskell'      => qr/\.(l?h|l?g)s$/o,
                    561:    'html'         => qr/\.x?html?$/o,
                    562:    'idl'          => qr/\.idl$/o,
                    563:    'inf'          => qr/\.inf$/io,
                    564:    'java'         => qr/\.java$/o,
3.83      scop      565:    'javascript'   => qr/\.(js|pac)$/o,
3.48      scop      566:    'ksh'          => qr/\.ksh$/o,
                    567:    'm4'           => qr/\.m4$/o,
3.83      scop      568:    'makefile'     => qr/(GNU)?[Mm]akefile(?!\.PL\b)|\.(ma?ke?|am)$/o,
3.48      scop      569:    'matlab'       => qr/\.m$/o,
                    570:    'nroff'        => qr/\.man$/o,
                    571:    'pascal'       => qr/\.p(as|p)?$/io,
3.83      scop      572:    'perl'         => qr/\.p(m|(er)?l)$/io,
3.48      scop      573:    'postscript'   => qr/\.e?ps$/io,
                    574:    'python'       => qr/\.py$/o,
                    575:    'rfc'          => qr/\b((rfc|draft)\..*\.txt)$/o,
                    576:    'scheme'       => qr/\.(scm|scheme)$/o,
                    577:    'sh'           => qr/\.sh$/o,
                    578:    'skill'        => qr/\.il$/o,
                    579:    'sql'          => qr/\.sql$/o,
                    580:    'states'       => qr/\.st$/o,
                    581:    'synopsys'     => qr/\.s(cr|yn(th)?)$/o,
                    582:    'tcl'          => qr/\.tcl$/o,
                    583:    'tcsh'         => qr/\.tcshrc$/o,
                    584:    'tex'          => qr/\.tex$/o,
                    585:    'vba'          => qr/\.vba$/o,
                    586:    'verilog'      => qr/\.(v|vh)$/o,
                    587:    'vhdl'         => qr/\.vhdl?$/o,
                    588:    'vrml'         => qr/\.wrl$/o,
                    589:    'wmlscript'    => qr/\.wmls(cript)?$/o,
                    590:    'zsh'          => qr/\.(zsh(env|rc)|z(profile|log(in|out)))$/o,
                    591:   );
3.39      scop      592:
3.12      knu       593: 1;
3.26      knu       594:
3.57      scop      595: # EOF

CVSweb