change URL at comments
[tools/sbs.git] / README
1
2 Procedure for installing and running SBS
3 ----------------------------------------
4
5 This procedure installs both Scratchbox2 and SBS
6
7 You will end up with a directory structure like this:
8
9 # clones of sbs and scratchbox2 repositories
10 # scratchbox2 repo is cloned automatically by the install script
11 git/
12     qemu
13     sbs
14     scratchbox2
15
16 # exectuables (created by install script)
17 sbs-install/bin
18
19 # sbs data directories (created by sbs script)
20 ~/.scratchbox2
21 sbs/
22
23 Make sure that http://127.0.0.1/apt is not behind a proxy.
24 Proxies can cause the sbs script to fail.
25
26
27 Setup SBS (takes about 5 minutes):
28
29 1. git config --global user.email "your_id@your_company.com"
30 2. mkdir git ; cd git
31 3. sudo aptitude install debootstrap
32 4. git clone git://review.tizen.org/tools/sbs
33 5. cd sbs ; ./install-sbs
34
35
36 Setting up SBS environment (takes about 20 minutes):
37
38 1. ~/sbs-install/bin/sbs -A i386 -c
39
40
41 Building a module with SBS:
42
43 1. git clone git://review.tizen.org/pkgs/e/ecore.git
44 2. cd ecore
45 3. ~/sbs-install/bin/sbs -e dpkg-buildpackage -b # will fail because of missing build deps
46 4. ~/sbs-install/bin/sbs -et apt-get install ... # install list of build dependencies
47 5. ~/sbs-install/bin/sbs -e dpkg-buildpackage -b
48
49
50 Updating SBS environment:
51
52 1. ~/sbs-install/bin/sbs -et apt-get update
53 2. ~/sbs-install/bin/sbs -et apt-get upgrade
54
55
56 Rebuild SBS environment (takes around 30 minutes)
57
58 1. ~/sbs-install/bin/sbs -k  #then type "YES"
59 2. ~/sbs-install/bin/sbs -c
60