先决条件
CVSNT 2.0.x
Python 2.3
Python Win32 Extensions
1、安装
从http://russ.hn.org/viewcvs/下载ViewCVS的最新版本viewcvs-1.0-dev-r6.zip,解压后运行脚本viewcvs-install
python.exe viewcvs-install
输入安装目录,例如C:viewcvs
如果需要图形化显示cvs树,可以从http://www.akhphd.au.dk/~bertho/cvsgraph/下载CvsGraph
给源码关键字加上颜色标记,可以从http://gnuwin32.sourceforge.net/packages.html下载Enscript(需要sed,libiconv,libintl支持)
下载后都解压至一目录,例如C:GnuWin32,将此目录加PATH环境变量中
2、配置
修改viewcvs.conf
cvs_roots指定CVS仓库的根,如cvs_roots = cvs: E:cvs-repositoryCVSROOT
cvsnt_exe_path指定cvsnt的位置 cvsnt_exe_path = C:Program Filescvsntcvs.exe
address指定管理员的email
languages修改成zh-cn, en-us支持中文
启用enscript
use_enscript = 1
enscript_path = C:GnuWin32
启用cvsgraph
use_cvsgraph = 1
cvsgraph_path = C:GnuWin32
3、运行
i. 执行安装目录下的standalone.py脚本以standalone的方式运行viewcvs
ii.结合apache
以普通CGI方式运行
修改httpd.conf
添加
ScriptAlias /viewcvs "C:/viewcvs/www/cgi/viewcvs.cgi"
重启apache,访问http://localhost/viewcvs
或
借助mod_python模块
安装Mod_python,下载地址http://httpd.apache.org/modules/python-download.cgi
修改httpd.conf
添加
LoadModule python_module modules/mod_python.so]
Alias /viewcvs/ "C:/viewcvs/www/mod_python/"
<Directory "C:/viewcvs/www/mod_python">
Options Indexes MultiViews
AllowOverride Options FileInfo
Order allow,deny
Allow from all
</Directory>
重启apache,访问http://localhost/viewcvs/viewcvs.py
[Useful links]
CVSNT 2.0.38 | http://www.cvsnt.com/downloads/
ViewCVS 1.0-dev for Windows Release 6 | http://russ.hn.org/viewcvs/
Python 2.3.4 | http://www.python.org/2.3.4/
Python Win32 Extensions | http://starship.python.net/crew/mhammond/win32/Downloads.html
Apache 2.0 | http://httpd.apache.org/download.cgi
Mod_python | http://httpd.apache.org/modules/python-download.cgi
CvsGraph | http://www.akhphd.au.dk/~bertho/cvsgraph/
Enscript,sed,libiconv,libintl | http://gnuwin32.sourceforge.net/packages.html
Python Win32 Extensions:http://starship.python.net/crew/mhammond/
如果需要图形化显示cvs树,可以从http://www.akhphd.au.dk/~bertho/cvsgraph/下载CvsGraph
给源码关键字加上颜色标记,可以从http://gnuwin32.sourceforge.net/packages.html下载Enscript(需要sed,libiconv,libintl支持)