[go: up one dir, main page]

File: jenkins.sh

package info (click to toggle)
altos 1.9.22-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 83,712 kB
  • sloc: ansic: 120,853; java: 42,921; makefile: 8,573; sh: 4,995; xml: 2,154; pascal: 2,008
file content (25 lines) | stat: -rwxr-xr-x 604 bytes parent folder | download | duplicates (7)
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
#!/bin/sh
# jenkins.sh
# This script is used by Jenkins to perform a complete rebuild of Altos


prefix="--prefix=/usr/local"
ANDROID_SDK="${ANDROID_SDK:-$HOME/android-sdk-linux}"
android="--with-android=$ANDROID_SDK"
# use time if we have it
time=`which time`
if [ -n "$time" ]; then
    time="$time -v"
fi
# NOTE: the build process may fail on multi-cpu systems. If it fails try setting cpus=1
# cpus=$(nproc)
cpus=1

echo "=== starting altos build at $(date) ==="
env
echo "======================================="
set -x

./autogen.sh $prefix $android
make -j $cpus clean
$time make -j $cpus all fat