blob: 0301cd7dffd29ec6aefe42f591d0402c88a65815 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#!/bin/bash
set -e
VERSION=31.2.0
JAILDIR="/home/systems/gnuzilla/jails/toutatis"
ARCHS="i386 amd64"
rm binaries -rf
mkdir binaries
for ARCH in $ARCHS; do
[ -f $JAILDIR-$ARCH/proc/cpuinfo ] || mount -t proc none $JAILDIR-$ARCH/proc
mount -t tmpfs -o size=20G none $JAILDIR-$ARCH/root/
cp icecat-$VERSION -a $JAILDIR-$ARCH/root/
cat << EOF > $JAILDIR-$ARCH/root/buildscript
set -e
set -x
export LANG=C
cd /root/icecat-$VERSION
mkdir temp
cd temp
../configure --with-l10n-base=\$PWD/../l10n --enable-official-branding --disable-crashreporter --disable-gnomevfs --enable-gio --disable-debug --enable-gstreamer=0.10 --with-distribution-id=org.gnu --disable-updater
make -j8
cd browser/installer
make
cd ../locales
for locale in \$(ls ../../../l10n/ -1); do
make langpack-\$locale LOCALE_MERGEDIR=.
done
EOF
chroot $JAILDIR-$ARCH /bin/bash /root/buildscript
cp $JAILDIR-$ARCH/root/icecat-$VERSION/temp/dist/icecat*.tar.bz2 binaries
[ $ARCH = i386 ] && cp $JAILDIR-$ARCH/root/icecat-$VERSION/temp/dist/linux-*/xpi/ -a binaries/langpacks
umount $JAILDIR-$ARCH/root/ || true
umount $JAILDIR-$ARCH/proc || true
done
|