Editing MG/Getting The Code
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | [[MegaGlest]] has switched to git for managing the game's source code and data (the svn repo is no longer active). | + | '''NOTE: Due to problems converting to Git, MegaGlest is still using SVN.''' |
+ | <!-- REMOVE THIS LINE WHEN CONVERTED TO GIT | ||
+ | [[MegaGlest]] has now switched to git for managing the game's source code and data (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. | ||
− | == | + | ==Choose a git client== |
− | + | The MegaGlest source is stored in a Git repository (versions prior to 3.6.0.2 are in a different SVN repository, however), and requires a Git client to download. Clients exist for all major operating systems. | |
− | + | ====Linux==== | |
− | + | :''This section is currently outdated. You can [http://glest.wikia.com/index.php?title=MG/Getting_The_Code&action=edit edit] this page to improve that.'' | |
− | + | Most users will want to use the [https://subversion.apache.org/ 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==== | |
− | + | Download [http://git-scm.com/ Git] and install it, then run <tt>git-bash.bat</tt> in the installation folder to start the Git command line. For those with a preference for a client with a graphical interface, [http://code.google.com/p/tortoisegit/ TurtoiseGit] exists for that, though you will still need to install Git as well as [http://code.google.com/p/msysgit/ MysisGit]. | |
− | == | + | ==Check out the source code== |
− | + | ===Making the directory=== | |
− | + | :''Prior to running this command, you should navigate to the folder you wish to place the MegaGlest source.'' | |
− | === | + | mkdir megaglest-git |
− | + | cd megaglest-git | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Cloning the sources=== | ===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 | ||
− | git clone -- | + | ====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 | cd megaglest-source | ||
− | + | ln -s -T ../megaglest-data data | |
− | |||
− | === | + | ===With TortoiseGit=== |
− | + | :''This section only applies to those using TortoiseGit instead of the command line.'' | |
− | + | Once TortoiseGit and its prerequisites of Git and MysisGit are installed, right click in the folder you wish to place the sources and choose "Git Clone" from the context menu. Enter the following links in one at a time, waiting for TortoiseGit to finish downloading each one. | |
− | + | git://megaglest.git.sourceforge.net/gitroot/megaglest/megaglest /megaglest-source | |
− | git | + | git://megaglest.git.sourceforge.net/gitroot/megaglest/megaglest /megaglest-data |
− | + | git://megaglest.git.sourceforge.net/gitroot/megaglest/megaglest /megaglest-data-source | |
+ | REMOVE THIS LINE WHEN CONVERTED TO GIT --> | ||
+ | |||
+ | ==SVN== | ||
− | + | 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=== | |
− | + | [[File:Folder_structure.png]] | |
− | |||
− | |||
− | |||
==Tags and branches== | ==Tags and branches== | ||
− | Each release is 'tagged' and resides | + | 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 instead. Check [https://megaglest.svn.sourceforge.net/svnroot/megaglest/tags/ here] to see which ones are available. |
− | Branches are created | + | 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. |
==See also== | ==See also== | ||
− | *[[MG/ | + | *[[MG/SVN Structure|SVN Structure]] |
− | |||
− | |||
[[Category:MG]] | [[Category:MG]] | ||
− | [[Category: | + | [[Category:Cate Everett2]] |