首页 Soft PlugIn RAN乱 Dev开发 Info资料 English WAP 留言 登陆 注册
-
Posted by Yippee | 评论(0) | 引用(2) | 阅读3414次
Tortoisesvn的源码

翻译了一下它的简介,本来想继续TCVS的帮助文档,但是手痒,打开了它的连接,看到了这个:

Source code
TortoiseSVN is hosted on a subversion repository. You can:
Browse the repository in your web browser using the ViewCVS interface.

View the HEAD revision directly at http://tortoisesvn.tigris.org/svn/tortoisesvn/trunk.

Check out a working copy using TortoiseSVN - just click on the Tortoise!
 
The last two options require authentication with the server. You can use the guest account if you don't already have access there.
username : guest
password : guest

于是我就点击了一下那个乌龟:tsvn:http://tortoisesvn.tigris.org/svn/tortoisesvn/trunk,下载了源码,这是它的一些统计信息:

大小:46.8 MB (49,098,524 字节)  包含:6978个文件 967个文件夹

其中*.cpp有 198个文件 2968035个字节  *.c 有 63个文件 1180490字节 *.h 有286个文件 1765011字节。

使用 智能源码统计专家http://liangs99.yeah.net/
用于对目前流行的几乎所有编程工具所编写的程序进行代码统计,分析出程序中的代码行、注释行、空白行的行数和比例,软件支持VC++、C++ Builder、Delphi、VB、C/C++、ASM、Java等程序类型。软件拥有非常漂亮的界面和强大的智能化统计功能,编程必备工具。

统计结果:如果我写13万行代码,不知道我有没有这个耐心和魄力~~~惭愧!

统计结果汇总
186283 (共512个文件)
133308 (69.56%) 代码
35504 (18.53%) 注释
22823 (11.91%) 空白
21.03% ( 代码注释率 = 注释行/(注释行+有效代码行) )

First, you need to install some utilities/programs: 它的编译要求也太厉害了一点?
- Install VS.NET2003
- Install the java runtime. Get it from http://java.sun.com
  or from this direct link:
  http://java.sun.com/webapps/getjava/BrowserRedirect
- Install Python 2.4. You can get it from here:
  http://www.python.org/windows/
- To translate the docs, you will also need the libxml2 python bindings.
  Get them from here: http://users.skynet.be/sbi/libxml-python/
- Set the path where you installed python to the PATH environement variable.
- Install Perl. Get it from http://www.activestate.com/Products/ActivePerl/
- Get the WiX tools from http://wix.sourceforge.net and unzip them. Then add
  it to the PATH environement variable.
- If you want to include the dictionary and thesaurus in the installer/languagepacks,
  then you have to download those from http://lingucomponent.openoffice.org/.
  Important: Only the thesaurus in the format for OO2 will work! Earlier versions
  will crash TSVN!!

You may have to logoff/logon to make the new environement variables take effect!

- create a new folder on your harddisk, e.g. SVN. Make sure you have at least
  1.5 GB of free space left!!!
- Now checkout the subversion source into SVN\Subversion.
  If you're using TortoiseSVN to checkout the sources
  then right-click into the SVN folder and select "checkout".
  In the dialog enter the URL and add "\Subversion" to
  the checkout path.
  Make sure you check out the Subversion source from either the 1.2.x branch or
  one of the 1.2.x tags!
- Download the newest source of the apache server
  for windows from http://httpd.apache.org/download.cgi
  Unzip the sources into SVN\Subversion
  Then copy (not move) the folders
  SVN\Subversion\httpd-2.0.xx\srclib\apr to SVN\Subversion\apr
  SVN\Subversion\httpd-2.0.xx\srclib\apr-iconv to SVN\Subversion\apr-iconv
  SVN\Subversion\httpd-2.0.xx\srclib\apr-util to SVN\Subversion\apr-util
- Download the newest neon source from
  http://www.webdav.org/neon/ and unzip it into SVN\Subversion
  then rename the folder neon-0.24.x to neon. (neon-0.25.x doesn't work with
  Subversion 1.2 yet)
- create a new folder in SVN called 'common'
- Download the openssl source package from
  http://www.openssl.org/source/ and unzip it to SVN\common, then rename
  the folder from openssl-0.9.xx to openssl
- Download the zlib source from
  http://www.gzip.org/zlib/ and unzip it to SVN\common\zlib
- The thesaurus and dictionary files should be placed in SVN\common\Spell_Thes
  Note: the names of the files are important! They have to be
  en_US.aff, en_US.dic for the spellchecker, and
  th_en_US_v2.idx, th_en_US_v2.dat for the thesaurus.
- Checkout the TortoiseSVN sources from the Subversion repository into
  SVN\TortoiseSVN
- Download the tools to build the TSVN docs from
  http://tortoisesvn.tigris.org/files/documents/406/11147/Tools.zip and
  unzip them into SVN\TortoiseSVN\Tools\
- The build script also builds all the language packs, so you need the NSIS
  installer from http://nsis.sourceforge.net/.
- Make a copy of the file TortoiseVars.tmpl in the TSVN root folder and
  rename that copy to TortoiseVars.bat. Then simply adjust the paths as mentioned
  in that file.
- To compile the crashrpt project for TortoiseSVN, you'll need the WTL.
  You can get that library from here: http://wtl.sourceforge.net/
  Unzip it and then add the path to the VS.NET include path.

Now, if you got some time left you can run the build.bat script to compile
TortoiseSVN. Grab a cup of coffee - it can take up to two hours, depending on
how fast your computer is (on mine, it takes 1 hour and 50 minutes)!

Note: you may notice some compiler errors when the build script compiles
Subversion. The errors you will see are:
> error C2065: 'SVN_FS_WANT_DB_MAJOR' : undeclared identifier
> error C2065: 'SVN_FS_WANT_DB_MINOR' : undeclared identifier
> error C2065: 'SVN_FS_WANT_DB_PATCH' : undeclared identifier
This is expected and you don't have to worry about that. The reason for those
erros is that TortoiseSVN builds the Subversion library twice. Once with
all the ra-layers and all dbs, and once without those. The errors come
from that 'raw' build, but from libraries which aren't used in that build
anyway. Sure, the build script could just compile the libraries which
are really needed for that build, but it's much easier to just build the
whole solution instead of individual projects.
If you want to improve the build script to get rid of those errors, be our guest!


字体:

Permanant URI永久地址 http://www.shengfang.org/blog/p/tsvncode.php
Trackback URI引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1121608737

2005年7月17日21:58星期日  [English] 追踪此文的RSS
提示:
此文还没有评论。

称呼:    登陆   注册
   不注册,但记住我的信息
邮件:
(非必须)
评论: [UBB代码帮助]
粗体 斜体 下划线 链接 水平线 引用



验证码: 请输入你看见的数字
关闭UBB      提交时自动将内容复制到剪贴板

公告
Fire and Motion!

统计信息
[Yippee]||[统计]||日志:1858
在线: 7||用户: 2577 [列表]
今日:396||到访:2886460
Rss:897737||评论:1605

最新日志

最新评论

友情链接

日历
2008 - 08
     12
3456789
10111213141516
17181920212223
24252627282930
31      

最新引用

搜索

归档

杂项
Get RSS Feed (Version 2.0)
Get Atom Feed (Version 0.3)
编码:  UTF-8