Difference between revisions of "Documentation/Nightly/Developers/Build Instructions/CheckoutSourceCode"
From Slicer Wiki
m |
m (→Git) |
||
Line 22: | Line 22: | ||
* Setup the development environment using the [https://github.com/Slicer/Slicer/blob/master/Utilities/SetupForDevelopment.sh <code>SetupForDevelopment.sh</code>] script as described on our [[Documentation/Nightly/Developers/DevelopmentWithGit | Development With Git]] page. | * Setup the development environment using the [https://github.com/Slicer/Slicer/blob/master/Utilities/SetupForDevelopment.sh <code>SetupForDevelopment.sh</code>] script as described on our [[Documentation/Nightly/Developers/DevelopmentWithGit | Development With Git]] page. | ||
− | * Configure the <code>git | + | * Configure the <code>git svn</code> bridge to ensure the mapping with svn revision. |
<pre> | <pre> |
Revision as of 15:57, 13 June 2013
Home < Documentation < Nightly < Developers < Build Instructions < CheckoutSourceCodeCHECKOUT slicer source files
1. While it is not enforced, we strongly recommend you to AVOID the use of SPACES for both the source directory
and the build directory
. We mean it.
2. Even if you use svn
to check out Slicer source code, you will need to have git
installed to checkout and build other libraries. YES, you need to install the things listed in the prerequisites !.
Git
Checking the code using Git and configuring the git-svn
bridge is the way to go. If you plan on contributing code, have a look at How to contribute a patch ?
- Clone the github repository
git clone git://github.com/Slicer/Slicer.git
- Setup the development environment using the
SetupForDevelopment.sh
script as described on our Development With Git page.
- Configure the
git svn
bridge to ensure the mapping with svn revision.
cd Slicer git svn init http://svn.slicer.org/Slicer4/trunk git update-ref refs/remotes/git-svn refs/remotes/origin/master git checkout master git svn rebase
Svn
To simply build Slicer, getting the code using svn
is a more straight-forward approach.
svn co http://svn.slicer.org/Slicer4/trunk Slicer