forked from couchbaselabs/Android-Couchbase-SourceBuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.resetmz
executable file
·35 lines (25 loc) · 922 Bytes
/
build.resetmz
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
#!/bin/bash -x
#
# Almost worked...
#HGREV=21e90d198613
source scripts/env
# Make sure we have a valid environment before we continue
./scripts/checkenv
if [[ $? -ne 0 ]]; then
exit 1
fi
cd $COUCH_ANDROID_HOME
mkdir -p build/deps/mozilla-current
cd build/deps/mozilla-current
HGREV=bb9089ae2322
[[ -f $HGREV.tar.bz2 ]] || wget http://hg.mozilla.org/mozilla-central/archive/$HGREV.tar.bz2
[[ -L mozilla-central ]] && rm mozilla-central
[[ -d mozilla-central-$HGREV ]] && rm -rf mozilla-central-$HGREV
tar -jxf $HGREV.tar.bz2
ln -s mozilla-central-$HGREV mozilla-central
cd mozilla-central
# Use of __android_log_print and __android_log_write requires liblog.so from our
# toolchain. However, llog also has a dependency on libstdc++.so which our toolchain
# DOES NOT have so we need to substitute for something less Androidy (apologies).
patch -p1 < $COUCH_ANDROID_HOME/patches/mozilla-central.patch
exit 0