summaryrefslogtreecommitdiff
path: root/data/buildscripts/build-android.sh
blob: d042d15e4bd1c8b4eddda9b9a6417674ad4306fe (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
#!/bin/bash
set -e

apt-get -q -y --force-yes install openjdk-7-jdk ant mercurial ccache
apt-get -q -y --force-yes build-dep firefox

export PATH=$PATH:$PWD/android-sdk-linux/tools:$PWD/android-sdk-linux/build-tools:$PWD/android-sdk-linux/platform-tools:/usr/local/bin

pushd ./python/compare-locales/
python setup.py build
python setup.py install
install -m 755 scripts/* /usr/local/bin
popd

apt-get -q -y --force-yes  install zip unzip yasm

rm -rf obj-android

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


rm extensions/gnu/abouticecat* -rf

./mach build

pushd obj-android/mobile/android/locales
#for loc in $(cat ../../../../mobile/android/locales/maemo-locales); do
for loc in es-ES ; do
  LOCALE_MERGEDIR=$PWD/merge-$loc make merge-$loc LOCALE_MERGEDIR=$PWD/merge-$loc
  make LOCALE_MERGEDIR=$PWD/merge-$loc chrome-$loc LOCALE_MERGEDIR=$PWD/merge-$loc
done
popd

./mach package

pkill adb