SourceCode » History » Version 10
Paul Kocialkowski, 01/20/2014 03:20 PM
1 | 10 | Paul Kocialkowski | h1. Replicant Sources |
---|---|---|---|
2 | 1 | Paul Kocialkowski | |
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 | 9 | Linus Drumbler | Now that you have configured the repository to use a manifest, you can start downloading Replicant sources for the desired version. |
57 | 1 | Paul Kocialkowski | |
58 | 9 | Linus Drumbler | *This step is very long and can take the whole day to complete!* |
59 | |||
60 | 1 | Paul Kocialkowski | <pre> |
61 | ../tools/repo sync |
||
62 | </pre> |
||
63 | 3 | Paul Kocialkowski | |
64 | 9 | Linus Drumbler | Depending on your internet bandwidth, using the @-j@ argument may speed up the process (if you encounter errors, retry without the @-j@ argument): |
65 | 5 | Paul Kocialkowski | |
66 | <pre> |
||
67 | ../tools/repo sync -j9 |
||
68 | </pre> |
||
69 | |||
70 | 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. |