<p>Pau Espin Pedrol has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10704">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo-release.sh: Allow forcing release without LIBVERSION bump<br><br>Sometimes a fix release may be required which only contains fixes to<br>parts not related to a shared library, for instance a fix in the build<br>system. Thus allow releasing without bumping LIBVERSION, but only<br>through env var setting for people who know what they are doing.<br><br>Change-Id: I91e186d47638038bc2968ea0178879365ffc9512<br>---<br>M osmo-release.sh<br>1 file changed, 5 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/04/10704/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 1e5a203..26ebd33 100755</span><br><span>--- a/osmo-release.sh</span><br><span>+++ b/osmo-release.sh</span><br><span>@@ -7,6 +7,8 @@</span><br><span>    REL="patch"</span><br><span> fi</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ALLOW_NO_LIBVERSION_CHANGE="${ALLOW_NO_LIBVERSION_CHANGE:-0}"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> BUMPVER=`command -v bumpversion`</span><br><span> </span><br><span> NEW_VER=`bumpversion --list --current-version $VERSION $REL --allow-dirty | awk -F '=' '{ print $2 }'`</span><br><span>@@ -27,12 +29,13 @@</span><br><span> echo "Releasing $VERSION -> $NEW_VER..."</span><br><span> </span><br><span> if [ "z$LIBVERS" != "z" ]; then</span><br><span style="color: hsl(0, 100%, 40%);">-  if [ "z$MAKEMOD" = "z" ]; then</span><br><span style="color: hsl(0, 100%, 40%);">-              echo "Before releasing, please modify some of the libversions: $LIBVERS"</span><br><span style="color: hsl(120, 100%, 40%);">+    if [ "z$MAKEMOD" = "z" ] && [ "z$ALLOW_NO_LIBVERSION_CHANGE" = "z0" ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+           echo "ERROR: Before releasing, please modify some of the libversions: $LIBVERS"</span><br><span>            echo "You should NOT be doing this unless you've read and understood following article:"</span><br><span>               echo "https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html#Updating-version-info"</span><br><span>              exit 1</span><br><span>       fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>         if [ -f "TODO-RELEASE" ]; then</span><br><span>             grep '#' TODO-RELEASE > TODO-RELEASE.clean</span><br><span>                mv TODO-RELEASE.clean TODO-RELEASE</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10704">change 10704</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/10704"/><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-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I91e186d47638038bc2968ea0178879365ffc9512 </div>
<div style="display:none"> Gerrit-Change-Number: 10704 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>