Difference between revisions of "Getting the FreeSpace2: SCP Source Code"

From FreeSpace Wiki
Jump to: navigation, search
(Unixes)
Line 1: Line 1:
 +
'''IMPORTANT NOTES:'''
 +
 +
On March 2008, the SCP team has changed the repository server from  CVS based to SVN based.
 +
 +
Some terms have also changed with the new repository server:
 +
*'''The stable branch''' (old CVS) is now called '''Trunk''' (new SVN).
 +
*'''HEAD revision''' (new SVN) is latest version. Do not confuse it with '''the unstable branch''', also called '''HEAD branch''', in old CVS.
 +
 +
 +
 
==Windows==
 
==Windows==
  
''Ported from karajorma's post [http://www.hard-light.net/forums/index.php/topic,41234.msg842224.html#msg842224 here] on the [http://www.hard-light.net/forums/index.php HLP Forums].''
+
''Ported from karajorma's [http://www.hard-light.net/forums/index.php/topic,52845.0.html thread] on the [http://www.hard-light.net/forums/index.php HLP Forums].''
  
Here's how you set things up  
+
Here's how you set things up:
  
*Go to the [http://www.tortoisecvs.org/ Tortoise CVS homepage] and download the latest version
+
*Go to the [http://tortoisesvn.tigris.org/ Tortoise SVN homepage] and download the latest version.
*Install it. You'll have to restart your PC afterwards*
+
*Install it. You'll probably have to restart your PC afterwards.
*Make a new folder on your HD where you'd like to install the code. You'll need a fair bit of space for the code + the intermediate files when building it. Press right mouse and choose CVS Checkout from the list.
+
*Make a new folder on your HD where you'd like to install the code. You'll need a fair bit of space for the code + the intermediate files when building it. Press right mouse and choose SVN Checkout from the list.
[[Image:FS2_SCP_CVS_Installing1.jpg]]
+
::''<font color=red>A image from the forum is needed here</font>''
*An new window will open up. Cut and paste this into the CVSROOT: textbox :pserver:anonymous@warpcore.org:/home/fs2source/cvsroot
+
*An new window will open up. Cut and paste this into the URL of repository box:<br>'''svn://svn.icculus.org/fs2open/trunk/fs2_open'''
*In the module option at the bottom type fs2_open (exactly as shown. Do not use capitals) Your screen should now look like this
+
*By default the HEAD revision will be selected. You probably don't want to change this. Your screen should now look like this:
[[Image:FS2_SCP_CVS_Installing2.jpg]]
+
::''<font color=red>Another image from the forum is needed here</font>''
*If you want to checkout the current stable branch rather than the development branch (Since you don't have write access you probably should go with the stable build so that that more of the bugs you encounter are your own fault) you should click on the revision tab
+
*Press OK to begin downloading from the repository.
*''Click on the "Choose Branch or Tag" option. Press the Update List button. TortoiseCVS will then connect to the server and get a list of revisions''
+
 
*''If you set up things correctly on the Module tab, you will be prompted for a password. The password for anoymous access is anonymous.''
+
It's pretty easy. It shouldn't take you more than a minute or two to do once you've installed Tortoise.
*''In the "Branch or Tag Name" dropdown you can now see a list of branches that CVS contains. fs2_open_3_6_9 is the one you want''
 
*''Your screen should now look like this''
 
[[Image:FS2_SCP_CVS_Installing3.jpg]]
 
*Press OK to begin downloading from the repository. If not previously asked for a password you will be asked now. The password for anonymous access is anonymous.
 
  
It's pretty easy. Shouldn't take you more than a minute or two to do once you've installed Tortoise.
 
  
 
== Unixes ==
 
== Unixes ==
 +
'''<font color=red>THIS PART IS OBSOLETE. SVN IS THE NEW SERVER RATHER THAN CVS. AN UPDATE IS NEEDED </FONT>
 +
  
 
into your console, type the following :  
 
into your console, type the following :  

Revision as of 10:18, 22 March 2008

IMPORTANT NOTES:

On March 2008, the SCP team has changed the repository server from CVS based to SVN based.

Some terms have also changed with the new repository server:

  • The stable branch (old CVS) is now called Trunk (new SVN).
  • HEAD revision (new SVN) is latest version. Do not confuse it with the unstable branch, also called HEAD branch, in old CVS.


Windows

Ported from karajorma's thread on the HLP Forums.

Here's how you set things up:

  • Go to the Tortoise SVN homepage and download the latest version.
  • Install it. You'll probably have to restart your PC afterwards.
  • Make a new folder on your HD where you'd like to install the code. You'll need a fair bit of space for the code + the intermediate files when building it. Press right mouse and choose SVN Checkout from the list.
A image from the forum is needed here
  • An new window will open up. Cut and paste this into the URL of repository box:
    svn://svn.icculus.org/fs2open/trunk/fs2_open
  • By default the HEAD revision will be selected. You probably don't want to change this. Your screen should now look like this:
Another image from the forum is needed here
  • Press OK to begin downloading from the repository.

It's pretty easy. It shouldn't take you more than a minute or two to do once you've installed Tortoise.


Unixes

THIS PART IS OBSOLETE. SVN IS THE NEW SERVER RATHER THAN CVS. AN UPDATE IS NEEDED


into your console, type the following :

cvs -z 3 -d :pserver:[email protected]:/home/fs2source/cvsroot login

When prompted for a password, type : "anonymous" . Then, if you want the latest sources :

cvs -z 3 -d :pserver:[email protected]:/home/fs2source/cvsroot co fs2_open

If you want the stable branche instead, use the -r option for tags :

cvs -z 3 -d :pserver:[email protected]:/home/fs2source/cvsroot co -r fs2_open_3_6_9 fs2_open