Project

General

Profile

SourceCode » History » Version 7

Paul Kocialkowski, 10/19/2013 08:22 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 7 Paul Kocialkowski
wget http://commondatastorage.googleapis.com/git-repo-downloads/repo
20 1 Paul Kocialkowski
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 4 Paul Kocialkowski
h3. Replicant 4.0
30
31
<pre>
32
mkdir replicant-4.0
33
cd replicant-4.0
34
../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-4.0
35
</pre>
36
37 1 Paul Kocialkowski
h3. Replicant 2.3
38
39
<pre>
40
mkdir replicant-2.3
41
cd replicant-2.3
42
../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.3
43
</pre>
44
45
h3. Replicant 2.2
46
47
<pre>
48
mkdir replicant-2.2
49
cd replicant-2.2
50
../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2
51
</pre>
52
53 3 Paul Kocialkowski
h2. Downloading/Updating the source from the repos
54 1 Paul Kocialkowski
55
Now that you have configured repo to use a manifest, you can start downloading Replicant sources for the desired version.
56
*This is step is very long and can take the whole day to complete!*
57
58
<pre>
59
../tools/repo sync
60
</pre>
61 3 Paul Kocialkowski
62 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):
63 5 Paul Kocialkowski
64
<pre>
65
../tools/repo sync -j9
66
</pre>
67
68 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.