summaryrefslogtreecommitdiffstats
path: root/contrib/jenkins_arch.sh
blob: 360fd1c18d08b39b9f1e9f2fbc311f95b71da770 (plain)
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
26
27
28
29
30
31
32
33
#!/bin/sh
# this is a dispatcher script which will call the arch-specific
# script based on the arch specified as command line argument

arch="$1"

if [ "x$arch" = "x" ]; then
	echo "Error: You have to specify the architecture as first argument, e.g. $0 amd64"
	exit 2
fi

if [ ! -d "./contrib" ]; then
  echo "Run ./contrib/jenkins_arch.sh from the root of the libosmocore tree"
  exit 1
fi

set -x -e

case "$arch" in

  amd64)
    ./contrib/jenkins_amd64.sh
  ;;

  arm)
    ./contrib/jenkins_arm.sh
  ;;

  *)
    set +x
    echo "Unexpected architecture '$arch'"
  ;;
esac