<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/23098">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo-release.sh: Properly rearrange var init and sanity checks<br><br>Change-Id: If62024fafcd30bc3399115248116e15e141b1cbb<br>---<br>M osmo-release.sh<br>1 file changed, 5 insertions(+), 7 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/98/23098/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 173652d..eea17cf 100755</span><br><span>--- a/osmo-release.sh</span><br><span>+++ b/osmo-release.sh</span><br><span>@@ -201,21 +201,19 @@</span><br><span> </span><br><span> </span><br><span> BUMPVER=`command -v bumpversion`</span><br><span style="color: hsl(0, 100%, 40%);">-GIT_TOPDIR="$(git rev-parse --show-toplevel)"</span><br><span style="color: hsl(0, 100%, 40%);">-NEW_VER=`bumpversion --list --current-version $VERSION $REL --allow-dirty | awk -F '=' '{ print $2 }'`</span><br><span style="color: hsl(0, 100%, 40%);">-LIBVERS=`git grep -n LIBVERSION | grep  '=' | grep am | grep -v LDFLAGS`</span><br><span style="color: hsl(0, 100%, 40%);">-MAKEMOD=`git diff --cached -GLIBVERSION --stat | grep Makefile.am`</span><br><span style="color: hsl(0, 100%, 40%);">-ISODATE=`date -I`</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span> if [ "z$BUMPVER" = "z" ]; then</span><br><span>   echo Unable to find 'bumpversion' command.</span><br><span>   exit 1</span><br><span> fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(120, 100%, 40%);">+NEW_VER=`$BUMPVER --list --current-version $VERSION $REL --allow-dirty | awk -F '=' '{ print $2 }'`</span><br><span> if [ "z$NEW_VER" = "z" ]; then</span><br><span>      echo "Please fix versioning to match http://semver.org/ spec (current is $VERSION) before proceeding."</span><br><span>     exit 1</span><br><span> fi</span><br><span style="color: hsl(120, 100%, 40%);">+GIT_TOPDIR="$(git rev-parse --show-toplevel)"</span><br><span style="color: hsl(120, 100%, 40%);">+LIBVERS=`git grep -n LIBVERSION | grep  '=' | grep am | grep -v LDFLAGS`</span><br><span style="color: hsl(120, 100%, 40%);">+MAKEMOD=`git diff --cached -GLIBVERSION --stat | grep Makefile.am`</span><br><span style="color: hsl(120, 100%, 40%);">+ISODATE=`date -I`</span><br><span> </span><br><span> echo "Releasing $VERSION -> $NEW_VER..."</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/23098">change 23098</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/+/23098"/><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: If62024fafcd30bc3399115248116e15e141b1cbb </div>
<div style="display:none"> Gerrit-Change-Number: 23098 </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>