diff options
author | Ruben Rodriguez <ruben@gnu.org> | 2014-10-21 01:10:26 +0200 |
---|---|---|
committer | Ruben Rodriguez <ruben@gnu.org> | 2014-10-21 01:10:26 +0200 |
commit | c47f3dda10695dc1e71851e8cf7fdfb99d9d1c66 (patch) | |
tree | 2a44d64548885f28939d4f2fc17f9759849c3b57 /tools/buildbinaries | |
parent | 14e6d0ed4be07a4d6bf94a141af83b7d60f1ac5f (diff) |
Added tools dir
Diffstat (limited to 'tools/buildbinaries')
-rw-r--r-- | tools/buildbinaries | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/tools/buildbinaries b/tools/buildbinaries new file mode 100644 index 0000000..0301cd7 --- /dev/null +++ b/tools/buildbinaries @@ -0,0 +1,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 + |