SourceCode » History » Version 3
Paul Kocialkowski, 02/05/2012 02:51 PM
| 1 | 1 | Paul Kocialkowski | h1. Getting Replicant Sources |
|---|---|---|---|
| 2 | |||
| 3 | 2 | Paul Kocialkowski | h2. Browsing the source |
| 4 | |||
| 5 | The Replicant source code is currently hosted at Gitorious: https://gitorious.org/replicant |
||
| 6 | There is a branch per Replicant version, like @replicant-2.2@. |
||
| 7 | |||
| 8 | 1 | Paul Kocialkowski | h2. Code tree location |
| 9 | |||
| 10 | Start by defining the place where you want to download Replicant tree. |
||
| 11 | *The path to this place must have no space!* |
||
| 12 | |||
| 13 | h2. Installing the tools |
||
| 14 | |||
| 15 | Then, download the @repo@ tool and set it executable: |
||
| 16 | <pre> |
||
| 17 | mkdir tools |
||
| 18 | cd tools |
||
| 19 | wget https://dl-ssl.google.com/dl/googlesource/git-repo/repo |
||
| 20 | chmod a+x repo |
||
| 21 | cd ../ |
||
| 22 | </pre> |
||
| 23 | |||
| 24 | h2. Getting the source manifest |
||
| 25 | |||
| 26 | The source manifest is the list of all the git repos that are present in the Replicant tree. |
||
| 27 | There is one manifest per replicant version. |
||
| 28 | |||
| 29 | h3. Replicant 2.3 |
||
| 30 | |||
| 31 | <pre> |
||
| 32 | mkdir replicant-2.3 |
||
| 33 | cd replicant-2.3 |
||
| 34 | ../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.3 |
||
| 35 | </pre> |
||
| 36 | |||
| 37 | h3. Replicant 2.2 |
||
| 38 | |||
| 39 | <pre> |
||
| 40 | mkdir replicant-2.2 |
||
| 41 | cd replicant-2.2 |
||
| 42 | ../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2 |
||
| 43 | </pre> |
||
| 44 | |||
| 45 | 3 | Paul Kocialkowski | h2. Downloading/Updating the source from the repos |
| 46 | 1 | Paul Kocialkowski | |
| 47 | Now that you have configured repo to use a manifest, you can start downloading Replicant sources for the desired version. |
||
| 48 | *This is step is very long and can take the whole day to complete!* |
||
| 49 | |||
| 50 | <pre> |
||
| 51 | ../tools/repo sync |
||
| 52 | </pre> |
||
| 53 | 3 | Paul Kocialkowski | |
| 54 | You must redo this step each time you want to sync your tree, in order to keep it up to date. Future syncs are faster than the first one. |