aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
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"