-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- ---++ Mini guide to installing ViewCVS with Enscript and CVSGraph
%begin sh%
mkdir viewcvs
cd viewcvs
wget
http://viewcvs.sourceforge.net/viewcvs-0.9.2.tar.gz
# Main package
whereis rcs
# Ensure that RCS is installed.
diff -v
# Ensure that we are using GNU diff (by, Oh my Goodness, among others, Paul Eggert. Christ!)
wget
ftp://ftp.gnu.org/pub/gnu/enscript/enscript-1.6.1.tar.gz
# Get Enscript - the code colorize, must use 1.61 or below.
wget
http://www.akhphd.au.dk/~bertho/cvsgraph/release/cvsgraph-1.5.1.tar.gz
# get CVSgraph to create development trees.
wget
http://www.akhphd.au.dk/~bertho/cvsgraph/viewcvs-0.9.2-cvsgraph-1.4.0.diff.gz
# get CVSgraph diff to
ViewCVS? to enable advanced features not yet implemented in
ViewCVS?
# Installing Enscript with local install (since it isn't likely that
we have write to /usr/bin)
tar -zxvf enscript-1.6.1.tar.gz
cd enscript-1.6.1
echo ~
# change prefix to the value of ~ (don't use ~, it seems bad things happen)
./configure --prefix=/home/rizwank
# Running configure, planning to place files in ~/bin, etc.
make
make install
# check for errors
~/bin/enscript
# should give an lpr and broken pipe error
cd ..
rm -fr enscript-1.6.1*
# Repeating for CVSgraph
tar -zxvf cvsgraph-1.5.1.tar.gz
cd cvsgraph-1.5.1
./configure --prefix=/home/rizwank
make
cp cvsgraph ~/bin
rm -fr cvsgraph-1.5.1*
# now setup the viewcvs scripts WITH the appropriate diffs for CVSgraph
# ripped from
http://www.akhphd.au.dk/~bertho/cvsgraph/
tar -zxvf viewcvs-0.9.2.tar.gz
cd viewcvs-0.9.2
zcat ../viewcvs-0.9.2-cvsgraph-1.4.0.diff.gz | patch -p0
./viewcvs-install
# select install path carefully.
# It really should be in your webspace unless you plan to symlink it into your cgi-bin
# Obv it should be in someplace you are permitted to write.
# /home/rizwank/public_html/cvs for me
cd ..
rm -fr viewcvs-0.9.2*
cd /home/rizwank/public_html/cvs
# go to the new cvsview dir
# modify the following lines
# TODO : replace these with sed instead of manual
vi viewcvs.conf
#Development : /home/cvsroot ==> Repository Name : Actual CVS path
#default_root = Development ==> Change Development to Repository chosen above)
#address =
No CVS admin address has been configured
# configure address
#enscript_path = insert enscript path
#allow_tar = 0 ==> 1
#use_enscript = 0 ==> 1
#use_cvsgraph = 0 ==> 1
#cvsgraph_path = <= insert cvsgraph path
# put something like Redirect /cvs
http://www.geekymedia.com/viewcvs/cgi/viewcvs.cgi
# in .htaccess for the root, therefore path/cvs redirects to the cgi.
%end%
Enscript 1.63 works fine as well, if you apply the following patch:
%begin diff%
diff viewcvs.old viewcvs.py
481c481
< '--color', '-W', 'html', '-E' + lang, '-o',
>
'--color', '--language=html', '-E' + lang, '-o',
%end%
--
RizwanKassim - 15 Jan 2005
to top