SourceCode » History » Version 8
Linus Drumbler, 12/28/2013 11:04 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 | 8 | Linus Drumbler | Start by defining the place where you want to download Replicant tree. |
11 | |||
12 | *Important: the name of the path to this location must not contain spaces!* |
||
13 | 1 | Paul Kocialkowski | |
14 | h2. Installing the tools |
||
15 | |||
16 | Then, download the @repo@ tool and set it executable: |
||
17 | <pre> |
||
18 | mkdir tools |
||
19 | cd tools |
||
20 | 7 | Paul Kocialkowski | wget http://commondatastorage.googleapis.com/git-repo-downloads/repo |
21 | 1 | Paul Kocialkowski | chmod a+x repo |
22 | cd ../ |
||
23 | </pre> |
||
24 | |||
25 | h2. Getting the source manifest |
||
26 | |||
27 | The source manifest is the list of all the git repos that are present in the Replicant tree. |
||
28 | There is one manifest per replicant version. |
||
29 | |||
30 | 4 | Paul Kocialkowski | h3. Replicant 4.0 |
31 | |||
32 | <pre> |
||
33 | mkdir replicant-4.0 |
||
34 | cd replicant-4.0 |
||
35 | ../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-4.0 |
||
36 | </pre> |
||
37 | |||
38 | 1 | Paul Kocialkowski | h3. Replicant 2.3 |
39 | |||
40 | <pre> |
||
41 | mkdir replicant-2.3 |
||
42 | cd replicant-2.3 |
||
43 | ../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.3 |
||
44 | </pre> |
||
45 | |||
46 | h3. Replicant 2.2 |
||
47 | |||
48 | <pre> |
||
49 | mkdir replicant-2.2 |
||
50 | cd replicant-2.2 |
||
51 | ../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2 |
||
52 | </pre> |
||
53 | |||
54 | 3 | Paul Kocialkowski | h2. Downloading/Updating the source from the repos |
55 | 1 | Paul Kocialkowski | |
56 | Now that you have configured repo to use a manifest, you can start downloading Replicant sources for the desired version. |
||
57 | *This is step is very long and can take the whole day to complete!* |
||
58 | |||
59 | <pre> |
||
60 | ../tools/repo sync |
||
61 | </pre> |
||
62 | 3 | Paul Kocialkowski | |
63 | 6 | Paul Kocialkowski | Depending on your internet bandwidth, using the @-j@ argument may speed up the process (if you encounter errors, please retry without the @-j@ argument): |
64 | 5 | Paul Kocialkowski | |
65 | <pre> |
||
66 | ../tools/repo sync -j9 |
||
67 | </pre> |
||
68 | |||
69 | 6 | Paul Kocialkowski | 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. |