blob: bac92780ba5ff7dfb882423754509288ffda4f67 [file] [log] [blame]
Max1ac277d2018-01-18 19:15:40 +01001#!/bin/sh
2# this is a dispatcher script which will call the arch-specific
3# script based on the arch specified as command line argument
4
5arch="$1"
6
7if [ "x$arch" == "x" ]; then
8 echo "Error: You have to specify the architecture as first argument, e.g. $0 amd64"
9 exit 2
10fi
11
12if [ ! -d "./contrib" ]; then
13 echo "Run ./contrib/jenkins_arch.sh from the root of the libosmocore tree"
14 exit 1
15fi
16
17set -x -e
18
19case "$arch" in
20
21 amd64)
22 ./contrib/jenkins_amd64.sh
23 ;;
24
25 arch)
26 ./contrib/jenkins_arch.sh
27 ;;
28
29 *)
30 set +x
31 echo "Unexpected architecture '$arch'"
32 ;;
33esac