summaryrefslogtreecommitdiffstats
path: root/contrib/jenkins_arch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/jenkins_arch.sh')
-rwxr-xr-xcontrib/jenkins_arch.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/contrib/jenkins_arch.sh b/contrib/jenkins_arch.sh
new file mode 100755
index 00000000..bac92780
--- /dev/null
+++ b/contrib/jenkins_arch.sh
@@ -0,0 +1,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
+ ;;
+
+ arch)
+ ./contrib/jenkins_arch.sh
+ ;;
+
+ *)
+ set +x
+ echo "Unexpected architecture '$arch'"
+ ;;
+esac