===================================================================
RCS file: /cvs/cvsweb/Attic/cvsweb.conf,v
retrieving revision 3.6
retrieving revision 3.23
diff -u -p -r3.6 -r3.23
--- cvsweb/Attic/cvsweb.conf 2000/07/29 12:04:40 3.6
+++ cvsweb/Attic/cvsweb.conf 2001/01/14 09:04:04 3.23
@@ -4,13 +4,27 @@
#
# (c) 1998-1999 H. Zeller
-This script has been written by Bill Fenner -<fenner\@FreeBSD.org> -and improved by Henner Zeller -<zeller\@think.de>, -Henrik Nordström -<hno\@hem.passagen.se>, and -Ken Coar -<Ken.Coar\@Golux.Com>, then -Akinori MUSHA <knu\@FreeBSD.org> -brought it back to FreeBSD community and added more facilities; -it is covered by the -BSD-Licence. +This script has been written by Bill Fenner <fenner\@FreeBSD.org> and +improved by Henner Zeller <zeller\@think.de>, Henrik +Nordström <hno\@hem.passagen.se>, and +Ken Coar <Ken.Coar\@Golux.Com>, then +Akinori MUSHA <knu\@FreeBSD.org> brought it +back to FreeBSD community and made further improvements; it is covered +by the BSD-Licence.
If you would like to use this CGI script on your own web server and -CVS tree, see Zeller's -CVSweb distribution site. Bill's original script can be found -here. +CVS tree, download the latest version here, +and also check out Zeller's CVSweb +distribution site. Bill's original script can be found here.
Please send any suggestions, comments, etc. to @@ -188,12 +209,14 @@ EOT # These default icons are coming with apache. # If these icons are too large, check out the miniicons in the # icons/ directory; they have a width/height of 16/16 -# format: TEXT ICON-URL width height +my $iconsdir = "/icons"; +# format: TEXT ICON-URL width height %ICONS = ( - back => [ ("[BACK]", "/icons/cvsweb/back.gif", 20, 22) ], - dir => [ ("[DIR]", "/icons/cvsweb/dir.gif", 20, 22) ], - file => [ ("[TXT]", "/icons/cvsweb/text.gif", 20, 22) ], - ); + back => [ ("[BACK]", "$iconsdir/back.gif", 20, 22) ], + dir => [ ("[DIR]", "$iconsdir/dir.gif", 20, 22) ], + file => [ ("[TXT]", "$iconsdir/text.gif", 20, 22) ], + ); +undef $iconsdir; # the length to which the last logentry should # be truncated when shown in the directory view @@ -270,13 +293,14 @@ $showfunc = 1; # For each pair of regexps, files that match the first regexp will be diff'ed # with an '-F' option with the second regexp. %funcline_regexp = ( - "\\.(4th|fr)\$" => "\\(^\\| \\|\t\\): ", + "\\.(4th|fr)\$" => "\\(^\\|[ \t]\\): ", + "\\.rb\$" => "^[\t ]*\\(class\\|module\\|def\\) ", ); # ignore whitespaces for human readable diffs # (indendation and stuff ..) # ( '-w' option to diff) -$hr_ignwhite = 1; +$hr_ignwhite = 0; # ignore diffs which are caused by # keyword-substitution like $Id - Stuff @@ -317,18 +341,29 @@ $mime_types = '/usr/local/etc/apache/mime.types'; "shtml" => "text/html", "gif" => "image/gif", "jpeg" => "image/jpeg", - "jpg" => "image/jpeg", + "jpg" => "image/jpeg", + "png" => "image/png", + "xpm" => "image/xpm", "*" => "text/plain", ); +# Charset for HTML output +$charset = ''; +# e.g. +#$charset = $where =~ m,/ru[/_-], ? 'koi8-r' +# : $where =~ m,/zh[/_-], ? 'big5' +# : $where =~ m,/ja[/_-], ? 'x-euc-jp' +# : $where =~ m,/ko[/_-], ? 'x-euc-kr' +# : 'iso-8859-1'; + ############## # Misc ############## # allow annotation of files # this requires rw-access to the -# CVSROOT/history - file and rw-access -# to the subdirectory to place the lock -# so you maybe don't want it +# CVSROOT/history file (if you have one) +# and rw-access to the subdirectory to +# place the lock so you maybe don't want it $allow_annotate = 1; # allow pretty-printed version of files @@ -338,7 +373,7 @@ $allow_markup = 1; # of output if the Browser accepts # it (HTTP_ACCEPT_ENCODING=gzip) # [make sure to have gzip in the path] -$allow_compress = 1; +$allow_compress = 0; # Make use of javascript functions. # This way you can select one of your CVSroot @@ -362,10 +397,6 @@ $open_extern_window = 1; # this allows editing of all your options more intuitive $edit_option_form = (not $dirtable); -# remember to set the path to your -# rcsutils: rlog, rcsdiff (gzip if you use compression) -#$ENV{'PATH'} = '/usr/local/bin'; - # If you have files which automatically refers to other files # (such as HTML) then this allows you to browse the checked # out files as if outside CVS. @@ -387,6 +418,13 @@ $markupLogColor = "#ffffff"; # Show CVS log when viewing file contents $show_log_in_markup = 1; +# Preformat when viewing file contents. This should be turned off +# when you have files in the repository that are in a multibyte +# encoding which uses HTML special characters ([<>&"]) as part of a +# multi-byte character. (such as iso-2022-jp, ShiftJIS, etc.) +# Otherwise those files will get screwed up in markup. +$preformat_in_markup = ''; + # Tabstop used to expand tabs in colored diffs. If undefined then # tabs are always expanded to 8 spaces. $tabstop = 8; @@ -403,4 +441,30 @@ $tabstop = 8; # server $use_moddate = 1; +# Allows downloading a tarball of the current directory if set. +# Bear in mind that this allows downloading a tarball of your entire +# repository, which can take a lot of time and disk space to create! +# If you enable this, you may need to make sure that cvsweb can write to +# CVSROOT/val-tags, due to a bug in cvs. +$allow_tar = ''; + +# Options to pass to tar(1). +@tar_options = qw(); +# e.g. @tar_options = qw(--ignore-failed-read); +# GNU tar has some useful options against unexpected errors. + +# Options to pass to gzip(1) when compressing a tarball to download. +@gzip_options = qw(); +# e.g. @gzip_options = qw(-3); +# Try lower compression level than 6 (default) if you want faster +# compression, or higher, for better compression. + +# Options to pass to cvs(1). +@cvs_options = qw(-l); + +push @cvs_options, '-R' if ($uname eq 'FreeBSD' || $uname eq 'OpenBSD'); +# Only FreeBSD's and OpenBSD's cvs(1) supports -R (read only access +# mode) option, which considerably speeds up checkouts over NFS. + +1; #EOF