Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
[fw/altos] / jenkins.sh
1 #!/bin/sh
2 # jenkins.sh
3 # This script is used by Jenkins to perform a complete rebuild of Altos
4
5
6 prefix="--prefix=/usr/local"
7 ANDROID_SDK="${ANDROID_SDK:-$HOME/android-sdk-linux}"
8 android="--with-android=$ANDROID_SDK"
9 # use time if we have it
10 time=`which time`
11 if [ -n "$time" ]; then
12     time="$time -v"
13 fi
14 # NOTE: the build process may fail on multi-cpu systems. If it fails try setting cpus=1
15 # cpus=$(nproc)
16 cpus=1
17
18 echo "=== starting altos build at $(date) ==="
19 env
20 echo "======================================="
21 set -x
22
23 ./autogen.sh $prefix $android
24 make -j $cpus clean
25 $time make -j $cpus all fat