Project

General

Profile

SourceCode » History » Version 15

Denis 'GNUtoo' Carikli, 05/31/2014 02:22 PM
fix++

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 13 Denis 'GNUtoo' Carikli
18 1 Paul Kocialkowski
<pre>
19
mkdir tools
20
cd tools
21 7 Paul Kocialkowski
wget http://commondatastorage.googleapis.com/git-repo-downloads/repo
22 1 Paul Kocialkowski
chmod a+x repo
23
cd ../
24
</pre>
25
26
h2. Getting the source manifest
27
28
The source manifest is the list of all the git repos that are present in the Replicant tree.
29
There is one manifest per replicant version. 
30
31 12 Denis 'GNUtoo' Carikli
If you don't setup your name and email in git, repo will complain:
32 13 Denis 'GNUtoo' Carikli
33 12 Denis 'GNUtoo' Carikli
<pre>
34
Traceback (most recent call last):
35 13 Denis 'GNUtoo' Carikli
[...]
36 12 Denis 'GNUtoo' Carikli
error.GitError: manifests var: 
37
*** Please tell me who you are.
38
39 11 Paul Kocialkowski
Run
40 12 Denis 'GNUtoo' Carikli
41
  git config --global user.email "you@example.com"
42
  git config --global user.name "Your Name"
43
44
to set your account's default identity.
45 13 Denis 'GNUtoo' Carikli
[...]
46 12 Denis 'GNUtoo' Carikli
</pre>
47
So we setup it correctly, replace the email and the name by a valid one:
48
<pre>
49
  git config --global user.email "you@example.com"
50
  git config --global user.name "Your Name"
51 1 Paul Kocialkowski
</pre>
52 14 Denis 'GNUtoo' Carikli
53
h3. Replicant 4.2
54 1 Paul Kocialkowski
55 15 Denis 'GNUtoo' Carikli
<pre>
56 11 Paul Kocialkowski
mkdir replicant-4.2
57
cd replicant-4.2
58
../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-4.2
59
</pre>
60
61 4 Paul Kocialkowski
h3. Replicant 4.0
62
63
<pre>
64
mkdir replicant-4.0
65
cd replicant-4.0
66
../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-4.0
67
</pre>
68
69 1 Paul Kocialkowski
h3. Replicant 2.3
70
71
<pre>
72
mkdir replicant-2.3
73
cd replicant-2.3
74
../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.3
75
</pre>
76
77
h3. Replicant 2.2
78
79
<pre>
80
mkdir replicant-2.2
81
cd replicant-2.2
82
../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2
83
</pre>
84
85 3 Paul Kocialkowski
h2. Downloading/Updating the source from the repos
86 1 Paul Kocialkowski
87 9 Linus Drumbler
Now that you have configured the repository to use a manifest, you can start downloading Replicant sources for the desired version.
88 1 Paul Kocialkowski
89 9 Linus Drumbler
*This step is very long and can take the whole day to complete!*
90
91 1 Paul Kocialkowski
<pre>
92
../tools/repo sync
93
</pre>
94 3 Paul Kocialkowski
95 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):
96 5 Paul Kocialkowski
97
<pre>
98
../tools/repo sync -j9
99
</pre>
100
101 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.