Harald Welte | e57cbe2 | 2017-09-05 22:35:10 +0200 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
| 2 | # jenkins build helper script for openbsc. This is how we build on jenkins.osmocom.org |
| 3 | |
| 4 | if ! [ -x "$(command -v osmo-build-dep.sh)" ]; then |
| 5 | echo "Error: We need to have scripts/osmo-deps.sh from http://git.osmocom.org/osmo-ci/ in PATH !" |
| 6 | exit 2 |
| 7 | fi |
| 8 | |
Holger Hans Peter Freyther | b29ff1d | 2016-04-13 19:02:13 -0400 | [diff] [blame] | 9 | |
| 10 | set -ex |
| 11 | |
Harald Welte | e57cbe2 | 2017-09-05 22:35:10 +0200 | [diff] [blame^] | 12 | base="$PWD" |
| 13 | deps="$base/deps" |
| 14 | inst="$deps/install" |
| 15 | export deps inst |
| 16 | |
| 17 | mkdir "$deps" || true |
| 18 | rm -rf "$inst" |
| 19 | |
| 20 | osmo-build-dep.sh libosmocore "" ac_cv_path_DOXYGEN=false |
| 21 | |
Max | b87da75 | 2017-08-25 17:37:36 +0200 | [diff] [blame] | 22 | verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]") |
| 23 | |
Harald Welte | e57cbe2 | 2017-09-05 22:35:10 +0200 | [diff] [blame^] | 24 | export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH" |
| 25 | export LD_LIBRARY_PATH="$inst/lib" |
Holger Hans Peter Freyther | b29ff1d | 2016-04-13 19:02:13 -0400 | [diff] [blame] | 26 | |
Harald Welte | e57cbe2 | 2017-09-05 22:35:10 +0200 | [diff] [blame^] | 27 | set +x |
| 28 | echo |
| 29 | echo |
| 30 | echo |
| 31 | echo " =============================== openggsn ===============================" |
| 32 | echo |
| 33 | set -x |
| 34 | |
| 35 | cd "$base" |
Holger Hans Peter Freyther | b29ff1d | 2016-04-13 19:02:13 -0400 | [diff] [blame] | 36 | autoreconf --install --force |
Harald Welte | e57cbe2 | 2017-09-05 22:35:10 +0200 | [diff] [blame^] | 37 | ./configure |
| 38 | $MAKE $PARALLEL_MAKE |
| 39 | $MAKE distcheck |