Revision e3d01857 jenkins-build

View differences:

jenkins-build
16 16
    WORKSPACE=`pwd`
17 17
fi
18 18

  
19
if [ -z $ANDROID_HOME ]; then
20
    if [ -e ~/.android/bashrc ]; then
21
        . ~/.android/bashrc
22
    else
23
        echo "ANDROID_HOME must be set!"
24
        exit
25
    fi
26
fi
27

  
28
if [ -z $ANDROID_NDK_HOME ]; then
29
    if which ndk-build 2>&1 /dev/null; then
30
        ANDROID_NDK_HOME=`which ndk-build |  sed 's,/ndk-build,,'`
31
    else
32
        echo "ANDROID_NDK_HOME not set and 'ndk-build' not in PATH"
33
        exit
34
    fi
35
fi
36
# reset version code/name to current date
37
versionCodeDate=`date +%s`
38
versionNameDate=`date +%Y-%m-%d_%H.%M.%S`
39

  
40
sed -i \
41
    -e "s,android:versionCode=\"[0-9][0-9]*\",android:versionCode=\"$versionCodeDate\"," \
42
    -e "s,android:versionName=\"\([^\"][^\"]*\)\",android:versionName=\"\1.$versionNameDate\"," \
43
    AndroidManifest.xml
44

  
45
#use ndk-r8e
46
export NDK_BASE=$NDK_BASE"-r8e"
47

  
19 48
#set the mozconfig to be used
20 49
cd $WORKSPACE
21 50
export MOZCONFIG="$WORKSPACE/external/tor-browser/.mozconfig-android"

Also available in: Unified diff