summaryrefslogtreecommitdiff
path: root/data/buildscripts/build-gnulinux.sh
blob: 92bae7c3ed47c01629fece2c15312d036f0490c1 (plain)
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
#!/bin/bash
set -e
set -x

wget https://deb.nodesource.com/setup_16.x -O /tmp/nodesource_setup.sh
sed '/toutatis/s|precise|focal|;s/toutatis/nabia/' -i /tmp/nodesource_setup.sh
bash /tmp/nodesource_setup.sh

apt-get update
apt install nodejs
aptitude -q -y  build-dep firefox
cargo install cbindgen --version 0.23.0

ln -s /usr/lib/llvm*/bin/clang /bin/clang -f
ln -s /usr/lib/llvm*/bin/clang++ /bin/clang++ -f

cp ../../data/buildscripts/mozconfig-common .mozconfig
cat ../../data/buildscripts/mozconfig-gnulinux >> .mozconfig

rm -rf obj-gnulinux

./mach build
./mach package

for locale in $(ls l10n -1|grep -v compare-locales); do
    ./mach build langpack-$locale
done