Revision 3147c3d3

View differences:

external/tor-browser
1
Subproject commit fcbe110842ad55add0457d4927bb81305c9b21c3
1
Subproject commit cbcd482e285ab728f980edc44dee1c3f13f07818
jenkins-build
33 33
        exit
34 34
    fi
35 35
fi
36
# reset version code/name to current date
37
versionCodeDate=`date +%s`
38
versionNameDate=`date +%Y-%m-%d_%H.%M.%S`
39 36

  
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
37
# use ndk-r8e
46 38
export NDK_BASE=$NDK_BASE"-r8e"
47 39

  
48
#set the mozconfig to be used
40
# set the mozconfig to be used
49 41
cd $WORKSPACE
50 42
export MOZCONFIG="$WORKSPACE/external/tor-browser/.mozconfig-android"
51 43

  
52
#switch to gecko dev and build
44
# switch to gecko dev and build
53 45
cd external/tor-browser
54 46
./mach configure
55 47
./mach build
56 48
./mach package
57 49
./mach build-backend -b AndroidEclipse
58 50

  
51
# reset version code/name to current date
52
versionCodeDate=`date +%s`
53
versionNameDate=`date +%Y-%m-%d_%H.%M.%S`
54

  
55
cat $WORKSPACE/external/tor-browser/obj-tbb-*/mobile/android/base/AndroidManifest.xml | sed \
56
    -e "s,android:versionCode=\"[0-9][0-9]*\",android:versionCode=\"$versionCodeDate\"," \
57
    -e "s,android:versionName=\"\([^\"][^\"]*\)\",android:versionName=\"\1.$versionNameDate\"," \
58
    > /dev/null
59

  
59 60
#------------------------------------------------------------------------------#
60 61
# run local tests
61 62
cd $WORKSPACE/tests

Also available in: Unified diff