osmith has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/34815?usp=email )


Change subject: scripts/tarballs: add osmo-e1-recorder
......................................................................

scripts/tarballs: add osmo-e1-recorder

Closes: OS#6228
Change-Id: I6bd8387f99c258226125b33705645c43aadd875f
---
M .gitignore
A scripts/tarballs/install-depends.sh
M scripts/tarballs/publish-tarballs-for-tags.sh
3 files changed, 39 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/15/34815/1

diff --git a/.gitignore b/.gitignore
index 517a620..5f47674 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
 cov-analysis-*
 source-*
 install-*
+!install-depends.sh
 tokens.txt
 .*.sw?
 jenkins_jobs.ini
diff --git a/scripts/tarballs/install-depends.sh 
b/scripts/tarballs/install-depends.sh
new file mode 100755
index 0000000..4943712
--- /dev/null
+++ b/scripts/tarballs/install-depends.sh
@@ -0,0 +1,25 @@
+#!/bin/sh -ex
+# For releases where no debian/control exists, install the dependencies to pass
+# the checks in configure.ac so we can run it before building a release
+# tarball.
+
+PROJECT="$1"
+TAG="$2"
+DEPENDS=""
+
+case "$PROJECT" in
+osmo-e1-recorder)
+       DEPENDS="
+               libosmo-abis-dev
+               libosmocore-dev
+       "
+       ;;
+*)
+       DEPENDS=""
+       ;;
+esac
+
+if [ -n "$DEPENDS" ]; then
+       apt-get update
+       apt-get install -y --no-install-recommends $DEPENDS
+fi
diff --git a/scripts/tarballs/publish-tarballs-for-tags.sh 
b/scripts/tarballs/publish-tarballs-for-tags.sh
index 052e445..3cd8a15 100755
--- a/scripts/tarballs/publish-tarballs-for-tags.sh
+++ b/scripts/tarballs/publish-tarballs-for-tags.sh
@@ -20,6 +20,7 @@
        osmo-bsc
        osmo-bts
        osmo-cbc
+       osmo-e1-recorder
        osmo-e1d
        osmo-gbproxy
        osmo-ggsn
@@ -230,6 +231,8 @@
                        if [ -e debian/control ]; then
                                apt-get update
                                apt-get -y build-dep .
+                       else
+                               /tarballs/install-depends.sh \"$repo\" \"$tag\"
                        fi

                        cd /src/$project_path

--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/34815?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I6bd8387f99c258226125b33705645c43aadd875f
Gerrit-Change-Number: 34815
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>
Gerrit-MessageType: newchange

Reply via email to