summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-10-26 20:50:58 +0200
committerHarald Welte <laforge@gnumonks.org>2017-10-26 20:53:05 +0200
commit26f9d8768b644ae0dd20b0e671b949a340c954e4 (patch)
tree300be116c974abf9bb931b75bb5cb3f4571c6b35
parentff683afa2dfabbcd3feb62d852f576d9f72892c8 (diff)
osmocom:nightly OBS: add osmo-bsc package / remove nitb-split
This was the last package that we only built in osmocom:nitb-split:nightly, so we can remove the latter, too Change-Id: Ib99e0775e9db30ec3c5263bb3a364d8cab4633c3
-rwxr-xr-xscripts/osmocom-nightly-nitb-split.sh119
-rwxr-xr-xscripts/osmocom-nightly-packages.sh2
2 files changed, 2 insertions, 119 deletions
diff --git a/scripts/osmocom-nightly-nitb-split.sh b/scripts/osmocom-nightly-nitb-split.sh
deleted file mode 100755
index 3b547bf..0000000
--- a/scripts/osmocom-nightly-nitb-split.sh
+++ /dev/null
@@ -1,119 +0,0 @@
-#!/bin/bash
-
-set -e
-set -x
-
-DT=$(date +%Y%m%d)
-PROJ=network:osmocom:nitb-split:nightly
-
-### common
-checkout() {
- local name=$1
- local branch=$2
- local url="git://git.osmocom.org"
-
- cd "$REPO"
-
- if [ -n "$branch" ] ; then
- git clone "$url/$name" -b "$branch"
- else
- git clone "$url/$name"
- fi
-
- cd -
-}
-
-### OBS build
-prepare() {
- # clean up the whole space
- mkdir -p "$REPO/osc/"
- cd "$REPO/osc"
- osc co "$PROJ"
-}
-
-build() {
- local name=$1
- local repodir=$REPO/$name
- local oscdir=$REPO/osc/$PROJ/$name
-
- if [ -d "$oscdir" ] ; then
- # remove earlier version
- cd "$oscdir"
- osc rm -- * || true
- else
- # new package
- mkdir -p "$oscdir/"
- cd "$REPO/osc/$PROJ/"
- osc add "$name"
- fi
-
- cd "$repodir"
-
- VER=$(head -1 debian/changelog | cut -d ' ' -f 2 | sed 's,(,,' | sed 's,),,')
- dch -v "$VER.$DT" -m "Snapshot build"
- git commit -m "$DT snapshot" debian/
-
- mkdir -p "$DATA/$name"
- # source code build without dependency checks and unsigned source and unsigned change log
- gbp buildpackage -S -uc -us -d --git-ignore-branch "--git-export-dir=$DATA/$name"
-
- mv "$DATA/$name/"*.tar* "$DATA/$name/"*.dsc "$oscdir/"
-
- cd "$oscdir"
- osc add -- *.tar* *.dsc
- osc ci -m "Snapshot $name $DT"
-}
-
-post() {
- cd "$REPO/osc/$PROJ/"
- osc status
-}
-
-build_osmocom() {
- BASE=$PWD
- DATA=$BASE/data
- REPO=$BASE/repo
-
- # rather than including a dangerous 'rm -rf *' here, lets delegate to the user:
- if [ -n "$(ls)" ]; then
- echo "ERROR: I need to run in an empty directory."
- exit 1
- fi
-
- prepare
-
- checkout libosmocore
- checkout libosmo-abis
- checkout libosmo-netif
- checkout libosmo-sccp
- checkout libsmpp34
- checkout libasn1c
- checkout osmo-iuh
- checkout osmo-hlr
- checkout osmo-ggsn
- checkout osmo-mgw
- checkout osmo-bsc
- checkout osmo-msc
- checkout osmo-sgsn
-
- build libosmocore
- build libosmo-abis
- build libosmo-netif
- build libosmo-sccp
- build libsmpp34
- build libasn1c
- build osmo-iuh
- build osmo-hlr
- build osmo-ggsn
- build osmo-mgw
- build osmo-bsc
- build osmo-msc
- build osmo-sgsn
-
- post
-}
-
-TMPDIR=$(mktemp -d nightly-3g_XXXXXX)
-cd "$TMPDIR"
-build_osmocom
-rm -rf "./$TMPDIR/"
diff --git a/scripts/osmocom-nightly-packages.sh b/scripts/osmocom-nightly-packages.sh
index 12aa587..6206576 100755
--- a/scripts/osmocom-nightly-packages.sh
+++ b/scripts/osmocom-nightly-packages.sh
@@ -26,6 +26,7 @@ git clone git://git.osmocom.org/osmo-pcu
git clone git://git.osmocom.org/osmo-hlr
git clone git://git.osmocom.org/osmo-mgw
git clone git://git.osmocom.org/osmo-msc
+git clone git://git.osmocom.org/osmo-bsc
PROJ=network:osmocom:nightly
@@ -67,6 +68,7 @@ build osmo-pcu
build osmo-hlr
build osmo-mgw
build osmo-msc
+build osmo-bsc
cd $PROJ
osc ci -m "Snapshot $DT"