Max | 1ac277d | 2018-01-18 19:15:40 +0100 | [diff] [blame] | 1 | #!/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 | |
| 5 | arch="$1" |
| 6 | |
| 7 | if [ "x$arch" == "x" ]; then |
| 8 | echo "Error: You have to specify the architecture as first argument, e.g. $0 amd64" |
| 9 | exit 2 |
| 10 | fi |
| 11 | |
| 12 | if [ ! -d "./contrib" ]; then |
| 13 | echo "Run ./contrib/jenkins_arch.sh from the root of the libosmocore tree" |
| 14 | exit 1 |
| 15 | fi |
| 16 | |
| 17 | set -x -e |
| 18 | |
| 19 | case "$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 | ;; |
| 33 | esac |