diff options
author | Max <msuraev@sysmocom.de> | 2017-06-12 19:15:05 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-06-21 20:25:27 +0000 |
commit | 5b87144f91f86310073d6652c12fa717746ed8ba (patch) | |
tree | 08f6cd23cd130aef062a00f7e82d8ea73d2c4e61 /contrib/jenkins_oct_and_bts_trx.sh | |
parent | d5971d0681d5e9fb27c1c2c97e943f9d9e8cb2f8 (diff) |
Move common steps into common jenkins helper
Move value_string termination check and OpenBSC headers checkout into
shared jenkins helper from BTS' model-specific helpers to get rid of
copy-pasted code. While at it - also remove unnecessary bash
dependency.
Change-Id: Ic48b1f75179b9008d65219dd5a47c1ab3b886408
Diffstat (limited to 'contrib/jenkins_oct_and_bts_trx.sh')
-rwxr-xr-x | contrib/jenkins_oct_and_bts_trx.sh | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/contrib/jenkins_oct_and_bts_trx.sh b/contrib/jenkins_oct_and_bts_trx.sh index 93aa47a1..132c2e0d 100755 --- a/contrib/jenkins_oct_and_bts_trx.sh +++ b/contrib/jenkins_oct_and_bts_trx.sh @@ -1,22 +1,13 @@ -#!/usr/bin/env bash +#!/bin/sh -set -ex - -base="$PWD" -deps="$base/deps" -inst="$deps/install" -export deps inst - -mkdir "$deps" || true -rm -rf "$inst" +# shellcheck source=contrib/jenkins_common.sh +. $(dirname "$0")/jenkins_common.sh export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH="$inst/lib" osmo-build-dep.sh libosmocore -"$deps"/libosmocore/contrib/verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]") - osmo-build-dep.sh libosmo-abis cd "$deps" @@ -24,10 +15,6 @@ cd "$deps" # Get osmo-pcu for pcuif_proto.h osmo-deps.sh osmo-pcu -# Get openbsc for gsm_data_shared.* -osmo-deps.sh openbsc - -cd "$deps" if ! test -d layer1-api; then git clone git://git.osmocom.org/octphy-2g-headers layer1-api |