=================================================================== RCS file: /cvs/cvsweb/Attic/cvsweb.conf,v retrieving revision 3.18 retrieving revision 3.19 diff -u -p -r3.18 -r3.19 --- cvsweb/Attic/cvsweb.conf 2001/01/03 08:57:49 3.18 +++ cvsweb/Attic/cvsweb.conf 2001/01/11 01:52:56 3.19 @@ -7,10 +7,24 @@ # 2000 A. MUSHA # based on work by Bill Fenner # $zId: cvsweb.conf,v 3.27 2000/07/27 10:16:39 kcoar Exp $ -# $Id: cvsweb.conf,v 3.18 2001/01/03 08:57:49 knu Exp $ +# $Id: cvsweb.conf,v 3.19 2001/01/11 01:52:56 knu Exp $ # ### +# Set the path for the following commands: +# uname, cvs, rlog, rcsdiff +# gzip (if you enable $allow_compress) +# tar,rm (if you enable $allow_tar) +$command_path = '/bin:/usr/bin:/usr/local/bin'; + +# Search the above directories for each command +for (qw(uname cvs rlog rcsdiff gzip tar rm)) { + $CMD{$_} = search_path($_); +} + +# The name of the operating system implementation +$uname = `$CMD{$_}`; + ############## # CVS Root ############## @@ -380,12 +394,6 @@ $open_extern_window = 1; # this allows editing of all your options more intuitive $edit_option_form = (not $dirtable); -# Set the path for the following commands: -# cvs, rlog, rcsdiff -# gzip (if you enable $allow_compress) -# tar,rm (if you enable $allow_tar) -$command_path = '/bin:/usr/bin:/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. @@ -442,11 +450,18 @@ $allow_tar = ''; # 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 upper, for higher compression. + # Options to pass to cvs(1). @cvs_options = qw(-l); -# e.g. @cvs_options = qw(-R -l); -# -R (read only access mode) is implemented only in FreeBSD's and -# OpenBSD's cvs(1). + +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