Difference between revisions of "MG/Getting The Code"
(One intermediate revision by the same user not shown) | |||
Line 14: | Line 14: | ||
==Check out the source code== | ==Check out the source code== | ||
+ | [[MegaGlest]] has now switched to git (the svn repo is no longer active). Using the command line you would get the code in one of two ways. Either read-only if you will not contribute changes or read and write if you plan to help contribute to the project as well. | ||
− | + | ===Making the directory=== | |
− | |||
− | |||
− | |||
mkdir megaglest-git | mkdir megaglest-git | ||
cd megaglest-git | cd megaglest-git | ||
− | + | ===Cloning the sources=== | |
− | + | ====Read only==== | |
− | + | git clone git://megaglest.git.sourceforge.net/gitroot/megaglest/megaglest-source | |
− | git clone git://megaglest.git.sourceforge.net/gitroot | + | git clone git://megaglest.git.sourceforge.net/gitroot/megaglest/megaglest-data |
− | git clone git://megaglest.git.sourceforge.net/gitroot | + | git clone git://megaglest.git.sourceforge.net/gitroot/megaglest/megaglest-data-source |
− | git clone git://megaglest.git.sourceforge.net/gitroot | ||
− | + | ====Read and write==== | |
git clone ssh://<sourceforge-username>@megaglest.git.sourceforge.net/gitroot/megaglest/megaglest-source | git clone ssh://<sourceforge-username>@megaglest.git.sourceforge.net/gitroot/megaglest/megaglest-source | ||
git clone ssh://<sourceforge-username>@megaglest.git.sourceforge.net/gitroot/megaglest/megaglest-data | git clone ssh://<sourceforge-username>@megaglest.git.sourceforge.net/gitroot/megaglest/megaglest-data | ||
git clone ssh://<sourceforge-username>@megaglest.git.sourceforge.net/gitroot/megaglest/megaglest-data-source | git clone ssh://<sourceforge-username>@megaglest.git.sourceforge.net/gitroot/megaglest/megaglest-data-source | ||
− | + | ===Create the link=== | |
− | |||
cd megaglest-source | cd megaglest-source | ||
ln -s -T ../megaglest-data data | ln -s -T ../megaglest-data data |
Revision as of 00:11, 14 January 2012
Choose a subversion client
For source code management, i.e. software versioning and revision control, we use the subversion system. You need to install a subversion client on your computer to access and work with it properly.
Linux
Most users will want to use the Apache Software Foundation (ASF) subversion command line interface (CLI), as provided, on most distributions, by the 'subversion' package. Many distributions also provide graphical interfaces which are either frontends to the ASF subversion CLI or are standalone.
Windows
If you fancy graphical interfaces then Tortoise is for you. It allows you to manage the subversion repository from within Windows Explorer. However, if you prefer to work on a command line, then SlikSVN is the utility you want.
Windows 7 note: If you are going to use subversion on 64-bit Windows 7 and get error messages like The file or directory is corrupted and unreadable then that's because your OS's only primary file system is buggy.
Check out the source code
MegaGlest has now switched to git (the svn repo is no longer active). Using the command line you would get the code in one of two ways. Either read-only if you will not contribute changes or read and write if you plan to help contribute to the project as well.
Making the directory
mkdir megaglest-git cd megaglest-git
Cloning the sources
Read only
git clone git://megaglest.git.sourceforge.net/gitroot/megaglest/megaglest-source git clone git://megaglest.git.sourceforge.net/gitroot/megaglest/megaglest-data git clone git://megaglest.git.sourceforge.net/gitroot/megaglest/megaglest-data-source
Read and write
git clone ssh://<sourceforge-username>@megaglest.git.sourceforge.net/gitroot/megaglest/megaglest-source git clone ssh://<sourceforge-username>@megaglest.git.sourceforge.net/gitroot/megaglest/megaglest-data git clone ssh://<sourceforge-username>@megaglest.git.sourceforge.net/gitroot/megaglest/megaglest-data-source
Create the link
cd megaglest-source ln -s -T ../megaglest-data data
The SVN section is now deprecated, but will work for version 3.6.0.2 and lower
If you chose a subversion CLI then run the following command to retrieve the latest source code:
svn co https://megaglest.svn.sourceforge.net/svnroot/megaglest/trunk megaglest
Project folder layout
Tags and branches
This will check out the trunk directory, which is where active development takes place in. Each release is 'tagged' and a copy resides in the tags directory, so if you wanted an older release you would check out something below
https://megaglest.svn.sourceforge.net/svnroot/megaglest/tags/
instead. Just use your web browser to click on this URL and see which ones are available.
Branches are created in the branches subdirectory when required to seperate larger changes from active / stable development, so replace 'trunk' by 'branches' and check with your web brower which ones are available if this is your intention.
More info about the SVN Structure: SVN Structure