2018-01-18 18:15:40 +00:00
|
|
|
#!/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"
|
|
|
|
|
2018-02-15 14:28:41 +00:00
|
|
|
if [ "x$arch" = "x" ]; then
|
2018-01-18 18:15:40 +00:00
|
|
|
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
|
|
|
|
;;
|
|
|
|
|
2018-02-15 14:28:41 +00:00
|
|
|
arm)
|
|
|
|
./contrib/jenkins_arm.sh
|
2018-01-18 18:15:40 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
set +x
|
|
|
|
echo "Unexpected architecture '$arch'"
|
|
|
|
;;
|
|
|
|
esac
|