<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/15096">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo-release.sh: Add DRY_RUN mode<br><br>This option allows testing if everything is in place before attempting<br>release related actions such as commiting, applying tag, etc.<br>It's also useful during development of the osmo-release.sh release<br>itself, sine it makes test iterations faster (no need to undo actions<br>done).<br><br>Change-Id: Ie5c320b7c92f92fcc37287bb9801368265a986b3<br>---<br>M osmo-release.sh<br>1 file changed, 9 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/96/15096/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 4446da7..d59083c 100755</span><br><span>--- a/osmo-release.sh</span><br><span>+++ b/osmo-release.sh</span><br><span>@@ -9,6 +9,8 @@</span><br><span> </span><br><span> ALLOW_NO_LIBVERSION_CHANGE="${ALLOW_NO_LIBVERSION_CHANGE:-0}"</span><br><span> ALLOW_NO_LIBVERSION_DEB_MATCH="${ALLOW_NO_LIBVERSION_DEB_MATCH:-0}"</span><br><span style="color: hsl(120, 100%, 40%);">+# Test stuff but don't modify stuff:</span><br><span style="color: hsl(120, 100%, 40%);">+DRY_RUN="${DRY_RUN:-0}"</span><br><span> </span><br><span> libversion_to_deb_major() {</span><br><span>        libversion="$1"</span><br><span>@@ -73,12 +75,19 @@</span><br><span>                      exit 1</span><br><span>               fi</span><br><span>   fi</span><br><span style="color: hsl(120, 100%, 40%);">+    if [ "z$DRY_RUN" != "z0" ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+          exit 0</span><br><span style="color: hsl(120, 100%, 40%);">+        fi</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>           git add TODO-RELEASE</span><br><span>         fi</span><br><span> fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if [ "z$DRY_RUN" != "z0" ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+      exit 0</span><br><span style="color: hsl(120, 100%, 40%);">+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> git add debian/changelog</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/15096">change 15096</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/+/15096"/><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: Ie5c320b7c92f92fcc37287bb9801368265a986b3 </div>
<div style="display:none"> Gerrit-Change-Number: 15096 </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>