Difference between revisions of "Documentation/Nightly/Developers/Build Instructions/CheckoutSourceCode"

From Slicer Wiki
Jump to: navigation, search
(4.1 -> Nightly)
 
Line 1: Line 1:
 
== CHECKOUT slicer source files ==
 
== CHECKOUT slicer source files ==
 
Two options:  <code>svn</code>  or    <code>git-svn</code>
 
 
To make '''review''' and '''integration''' of your welcome contributions, we recommends the use of <code>git-svn</code>
 
  
 
<br>
 
<br>
Line 14: Line 10:
 
Note that even if you use <code>svn</code> to check out Slicer source code, you will need to have <code>git</code> installed to checkout and build other libraries. '''YES''', you need to install the things listed in the [[Documentation/{{documentation/version}}/Developers/Build Instructions/Prerequisites|prerequisites]] !.
 
Note that even if you use <code>svn</code> to check out Slicer source code, you will need to have <code>git</code> installed to checkout and build other libraries. '''YES''', you need to install the things listed in the [[Documentation/{{documentation/version}}/Developers/Build Instructions/Prerequisites|prerequisites]] !.
  
 +
=== Checkout source code ===
 +
 +
  git clone git://github.com/Slicer/Slicer.git
  
=== Using <code>git-svn</code> ===
+
=== Setup git-svn bridge ===
  
  git clone git://github.com/Slicer/Slicer.git
 
 
   cd Slicer
 
   cd Slicer
 
   git svn init http://svn.slicer.org/Slicer4/trunk
 
   git svn init http://svn.slicer.org/Slicer4/trunk
Line 25: Line 23:
  
 
Consider reading the following page: [[Slicer:git-svn|Slicer guide to <code>git-svn</code>]]
 
Consider reading the following page: [[Slicer:git-svn|Slicer guide to <code>git-svn</code>]]
 
=== Using <code>svn</code> ===
 
 
cd MyProjects
 
svn co [http://svn.slicer.org/Slicer4/trunk http://svn.slicer.org/Slicer4/trunk] Slicer
 
  
 
''Note: be sure to name your source directory 'Slicer' for compatibility with the build process.''
 
''Note: be sure to name your source directory 'Slicer' for compatibility with the build process.''

Revision as of 18:20, 9 January 2013

Home < Documentation < Nightly < Developers < Build Instructions < CheckoutSourceCode

CHECKOUT slicer source files



Note that 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 !.

Checkout source code

 git clone git://github.com/Slicer/Slicer.git

Setup git-svn bridge

 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

Consider reading the following page: Slicer guide to git-svn

Note: be sure to name your source directory 'Slicer' for compatibility with the build process.