summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-10-28 23:22:43 +0200
committerHarald Welte <laforge@gnumonks.org>2017-10-28 23:22:43 +0200
commit3c1889e198811958451bb9ad9eb92fa26fdd6bf0 (patch)
tree1913a6c00dbadd5b33281b1e3c22a6b21fea6b80 /scripts
parent63509531701138f9454f9c3505ceb435b6cf9e06 (diff)
Add osmocom-latest-packages.sh script for network:osmocom:latest
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/osmocom-latest-packages.sh62
1 files changed, 62 insertions, 0 deletions
diff --git a/scripts/osmocom-latest-packages.sh b/scripts/osmocom-latest-packages.sh
new file mode 100755
index 0000000..2f0152e
--- /dev/null
+++ b/scripts/osmocom-latest-packages.sh
@@ -0,0 +1,62 @@
+#!/bin/sh
+
+#set -e
+
+# OBS project name
+PROJ=network:osmocom:latest
+
+DT=`date +%Y%m%d`
+
+# start with a checkout of the project
+if [ -d $PROJ ]; then
+ (cd $PROJ && osc up)
+else
+ osc co $PROJ
+fi
+
+build() {
+ echo
+ echo "====> Building $1"
+ rm -rf data
+ [ -d $1 ] || git clone git://git.osmocom.org/$1
+ cd $1
+ git fetch
+ VER=`git describe --abbrev=0 --tags --match "*.*.*" origin/master`
+ git checkout -f -B $VER refs/tags/$VER
+ gbp buildpackage -d -S -uc -us --git-export-dir=$PWD/../data --git-debian-branch=$VER
+ cd ../$PROJ/$1
+ osc rm * || true
+ mv ../../data/*.dsc .
+ mv ../../data/*.tar* .
+ osc add *
+ cd ../../
+}
+
+PACKAGES="
+ libosmocore
+ libosmo-sccp
+ libosmo-abis
+ libosmo-netif
+ libsmpp34
+ libasn1c
+ osmo-iuh
+ osmo-ggsn
+ osmo-sgsn
+ openbsc
+ osmo-pcap
+ osmo-trx
+ osmo-sip-connector
+ osmo-bts
+ osmo-pcu
+ osmo-hlr
+ osmo-mgw
+ osmo-msc
+ osmo-bsc
+ "
+
+for p in $PACKAGES; do
+ build $p
+done
+
+cd $PROJ
+osc ci -m "Latest Tagged versions of $DT"