/
setup
executable file
·84 lines (64 loc) · 2.07 KB
/
setup
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/usr/bin/env bash
set -x # Show commands
set -eu # Errors/undefined vars are fatal
set -o pipefail # Check all commands in a pipeline
date
# Note that our tarball here also includes the flatpak SDK downloads that live
# under git/WebKitBuild/UserFlatpak.
echo Downloading webkit
pushd $INDEX_ROOT
if [ -d "git" ]
then
echo "Found pre-existing git folder; skipping re-download."
else
wget -nv https://s3-us-west-2.amazonaws.com/searchfox.repositories/wubkat.tar.lz4
lz4 -dc wubkat.tar.lz4 | tar -x
rm wubkat.tar.lz4
fi
popd
date
echo Downloading webkit blame
pushd $INDEX_ROOT
if [ -d "blame" ]
then
echo "Found pre-existing blame folder; skipping re-download."
else
wget -nv https://s3-us-west-2.amazonaws.com/searchfox.repositories/wubkat-blame.tar.lz4
lz4 -dc wubkat-blame.tar.lz4 | tar -x
rm wubkat-blame.tar.lz4
fi
popd
date
echo Updating git
pushd $GIT_ROOT
git remote prune origin || true
git pull origin main || handle_tree_error "wubkat git pull"
popd
date
echo Figuring out what revision to use.
USE_REV=$($CONFIG_REPO/wubkat/last-successful-build-to-git-commit.sh)
echo Checking out last successfully built revision "${USE_REV}"
date
pushd $GIT_ROOT
git checkout "${USE_REV}"
popd
echo Revision should now be checked out.
date
echo Generating blame information
$MOZSEARCH_PATH/tools/target/release/build-blame $GIT_ROOT $BLAME_ROOT
date
echo Installing/updating system build dependencies
# Update the apt index
sudo apt-get update
# gtk/install-dependencies below will install a bunch of stuff, but it seems like
# it maybe missed these things I've added after flatpak, but they may also be
# transitive deps of some of the below. (And now with the return to
# install-dependencies with explicit 22.04 these may not be needed at all, but
# we'll see.)
sudo apt-get install -y libcairo-dev libharfbuzz-dev gi-docgen
date
# Support for 22.04 seems to have been officially added in
# https://searchfox.org/wubkat/commit/aa960b1a0c7b980efdbc66718239a449b5966a0c
# so we're now using it directly again.
sudo $FILES_ROOT/Tools/gtk/install-dependencies
date