<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/15127">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo-release.sh: Support releasing openbsc.git<br><br>openbsc's directory structure is a bit different (has most stuff inside<br>an extra subdir). Let's account for that.<br><br>Change-Id: I407cf47d8339d99c74a976460ea84fffe679dfd8<br>---<br>M osmo-release.sh<br>1 file changed, 7 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/27/15127/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/osmo-release.sh b/osmo-release.sh</span><br><span>index a779a26..d99745e 100755</span><br><span>--- a/osmo-release.sh</span><br><span>+++ b/osmo-release.sh</span><br><span>@@ -24,7 +24,12 @@</span><br><span> # Make sure that depedency requirement versions match in configure.ac vs debian/control.</span><br><span> #eg: "PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 1.1.0)" vs "libosmocore-dev (>= 1.0.0),"</span><br><span> check_configureac_debctrl_deps_match() {</span><br><span style="color: hsl(0, 100%, 40%);">-   configureac_list=$(grep -e "PKG_CHECK_MODULES" "${GIT_TOPDIR}/configure.ac" | cut -d "," -f 2 | tr -d ")" | tr -d " " | sed "s/>=/ /g")</span><br><span style="color: hsl(120, 100%, 40%);">+        if [ "z$(basename ${GIT_TOPDIR})" = "zopenbsc" ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+            configureac_file="openbsc/configure.ac"</span><br><span style="color: hsl(120, 100%, 40%);">+     else</span><br><span style="color: hsl(120, 100%, 40%);">+          configureac_file="configure.ac"</span><br><span style="color: hsl(120, 100%, 40%);">+     fi</span><br><span style="color: hsl(120, 100%, 40%);">+    configureac_list=$(grep -e "PKG_CHECK_MODULES" "${GIT_TOPDIR}/${configureac_file}" | cut -d "," -f 2 | tr -d ")" | tr -d " " | sed "s/>=/ /g")</span><br><span>        echo "$configureac_list" | \</span><br><span>       { return_error=0</span><br><span>     while read -r dep ver; do</span><br><span>@@ -163,7 +168,7 @@</span><br><span> fi</span><br><span> gbp dch --debian-tag='%(version)s' --auto --meta --git-author --multimaint-merge --ignore-branch --new-version="$NEW_VER"</span><br><span> dch -r -m --distribution "unstable" ""</span><br><span style="color: hsl(0, 100%, 40%);">-git add debian/changelog</span><br><span style="color: hsl(120, 100%, 40%);">+git add ${GIT_TOPDIR}/debian/changelog</span><br><span> bumpversion --current-version $VERSION $REL --tag --commit --tag-name $NEW_VER --allow-dirty</span><br><span> git commit --amend # let the user add extra information to the release commit.</span><br><span> git tag -s $NEW_VER -f -m "Release v$NEW_VER on $ISODATE."</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/15127">change 15127</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/15127"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I407cf47d8339d99c74a976460ea84fffe679dfd8 </div>
<div style="display:none"> Gerrit-Change-Number: 15127 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>