-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.sh
executable file
·56 lines (48 loc) · 1.34 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh
set -v -e -x
ncpu=-j`grep -c ^processor /proc/cpuinfo`
WORK=`mktemp -d`
cd $WORK
git clone https://github.com/mackyle/xar xar
cd xar/xar
./autogen.sh --prefix=/home/worker
make $ncpu && make install
cd $WORK
git clone -b from_zarvox https://github.com/andreas56/libdmg-hfsplus.git
cd libdmg-hfsplus
cmake .
make $ncpu dmg-bin hfsplus
# `make install` installs way too much stuff
cp dmg/dmg hfs/hfsplus /home/worker/bin
strip /home/worker/bin/dmg /home/worker/bin/hfsplus
cd $WORK
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=$PATH:$PWD/depot_tools
mkdir breakpad
cd breakpad
fetch breakpad
cd src
touch README
./configure
make $ncpu src/tools/mac/dump_syms/dump_syms_mac
# `make install` is broken because there are two dump_syms binaries.
cp src/tools/mac/dump_syms/dump_syms_mac /home/worker/bin
strip /home/worker/bin/dump_syms_mac
cd $WORK
virtualenv /home/worker/venv
. /home/worker/venv/bin/activate
git clone https://github.com/wdas/reposado
cd reposado
python setup.py install
mkdir -p /opt/data-reposado/html /opt/data-reposado/metadata
repoutil --configure <<EOF
/opt/data-reposado/html/
/opt/data-reposado/metadata/
http://example.com/
EOF
cd $WORK
git clone https://github.com/luser/breakpad-scrape-system-symbols.git
cd breakpad-scrape-system-symbols
python setup.py install
cd /tmp
rm -rf $WORK