aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-04-11 15:29:30 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-04-12 17:53:15 +0200
commit53f2e1585fd9b15c5bb083eded27f23920cf4fe9 (patch)
tree62bc7d9b5aaec03e5a87e8a31dc86b1ad36ce63d
parentbfea6499a3c96a7db62d72a9d2bee60967d59961 (diff)
nightly-packages: Build latest tag of limesuite
Like we actually do already on latest-packages. Change-Id: I5a9e97a7a93c1d2a9983926cd0f5d7255e9666bd
-rwxr-xr-xscripts/osmocom-nightly-packages.sh16
1 files changed, 13 insertions, 3 deletions
diff --git a/scripts/osmocom-nightly-packages.sh b/scripts/osmocom-nightly-packages.sh
index e9cc778..9afed1e 100755
--- a/scripts/osmocom-nightly-packages.sh
+++ b/scripts/osmocom-nightly-packages.sh
@@ -25,6 +25,17 @@ prepare() {
osc co "$PROJ"
}
+get_last_tag() {
+ project="$1"
+ if [ "$project" = "limesuite" ]; then
+ ver_regexp="^v[0-9]*.[0-9]*.[0-9]*$"
+ else
+ ver_regexp="^[0-9]*.[0-9]*.[0-9]*$"
+ fi
+ VER=$(git -C "${REPO}/${project}" tag -l --sort=v:refname | grep "$ver_regexp" | tail -n 1)
+ echo "${VER}"
+}
+
get_commit_version() {
# return a version based on the commit
local version
@@ -130,10 +141,9 @@ download_bumpversion() {
}
checkout_limesuite() {
- TAG="v18.10.0"
-
cd "$REPO"
git clone https://github.com/myriadrf/LimeSuite limesuite
+ TAG="$(get_last_tag limesuite)"
cd limesuite
git checkout "$TAG"
}
@@ -192,7 +202,7 @@ build_osmocom() {
create_osmo_trx_debian8_jessie
- build limesuite no_commit --git-upstream-tree=v18.10.0
+ build limesuite no_commit --git-upstream-tree="$(get_last_tag limesuite)"
build libosmocore
build libosmo-sccp
build libosmo-abis