使用CVS或SVN從SourceForge上獲取開源項目的方法

 

      著名開源軟件網站(www.sourceforge.net)上面的開源項目,大部分使用的管理工具爲cvs或svn。這兩種軟件的代表客戶端程序是wincvs和tortoiseSVN。
 
1.cvs
CVS (Concurrent Versions System) is a tool used by many software developers to manage changes within their source code tree. CVS provides the means to store not only the current version of a piece of source code, but a record of all changes (and who made those changes) that have occurred to that source code. Use of CVS is particularly common on projects with multiple developers, since CVS ensures changes made by one developer are not accidentally removed when another developer posts their changes to the source tree.
 
2.svn
SVN (Subversion) is a tool used by many software developers to manage changes within their source code tree. SVN provides the means to store not only the current version of a piece of source code, but a record of all changes (and who made those changes) that have occurred to that source code. Use of SVN is particularly common on projects with multiple developers, since SVN ensures changes made by one developer are not accidentally removed when another developer posts their changes to the source tree
 
同樣的描述,只不過將cvs替換成了svn。
 
      在sourceforge上的某一個項目上,都會看到一個public的鏈接,這個鏈接提供了想要下載這個項目的cvs或svn地址。點擊public會看到,cvs repository或 svn repository,點擊這個鏈接會看到項目的下載地址,比如:
CVS的
[cvs -d:pserver:[email protected]:/cvsroot/construct login]
[cvs -z3 -d:pserver:[email protected]:/cvsroot/construct co -P modulename]
SVN的
[svn co https://scummvm.svn.sourceforge.net/svnroot/scummvm scummvm]
      同時,你在cvs repository或 svn repository的下面還會看到browse cvs或browse svn這個是用來瀏覽項目目錄的。如果你使用wincvs,點admin菜單的command line裏輸入命令:
cvs -d:pserver:[email protected]:/cvsroot/construct login

      他會問你password,直接回車就行。然後,接着在命令行接着鍵入下面的命令:
cvs -z3 -d:pserver:[email protected]:/cvsroot/construct co -P modulename
      這裏的modulename就是你在browse cvs裏看到的,你想要下載的模塊名,如果你想下載項目的所有文件,modulename寫成你在browse cvs裏看到的根路徑名。

      如果,項目是通過svn管理的,則你需要下載tortoiseSVN。tortoiseSVN和wincvs不同,她不是一個帶界面的軟件,安裝完之後,會在windows右鍵查單中出現,在你要保存項目的磁盤位置,新建一個文件夾,右鍵該文件夾,會看到一個svn checkout菜單項,點擊後,彈出一個對話框,在url of repository中輸入上面的:
[https://scummvm.svn.sourceforge.net/svnroot/scummvm scummvm],就可以把項目下載下來了。
     下載TortoiseSVN點擊 http://tortoisesvn.net/downloads/
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章