<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/15097">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo-release.sh: Verify debian/rules dh_strip lines match LIBVERSION<br><br>Change-Id: Ib929bfac3689f35aaa58d7d079a46fff188b7e8e<br>---<br>M osmo-release.sh<br>1 file changed, 14 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/97/15097/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 d59083c..e9602aa 100755</span><br><span>--- a/osmo-release.sh</span><br><span>+++ b/osmo-release.sh</span><br><span>@@ -60,6 +60,7 @@</span><br><span>                  else</span><br><span>                                 echo "WARN: Found $file_matches files matching debian/lib*$major.install for LIBVERSION=$libversion, manual check required!"</span><br><span>                       fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>                         control_matches="$(grep -e "Package" "${GIT_TOPDIR}/debian/control" | grep "lib" | grep "$major$" | wc -l)"</span><br><span>                        if [ "z$control_matches" = "z0" ]; then</span><br><span>                          echo "ERROR: Found no matching Package lib*$major in debian/control for LIBVERSION=$libversion"</span><br><span>@@ -69,6 +70,19 @@</span><br><span>                       else</span><br><span>                                 echo "WARN: Found $file_matches files matching 'Package: lib*$major' in debian/control for LIBVERSION=$libversion, manual check required!"</span><br><span>                         fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+                  dhstrip_lib_total="$(grep -e "dh_strip" "${GIT_TOPDIR}/debian/rules" | grep "\-plib" | wc -l)"</span><br><span style="color: hsl(120, 100%, 40%);">+                        dhstrip_lib_matches="$(grep -e "dh_strip" "${GIT_TOPDIR}/debian/rules" | grep "\-plib" | grep "$major" | wc -l)"</span><br><span style="color: hsl(120, 100%, 40%);">+                    if [ "z$dhstrip_lib_total" != "z0" ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+                                if [ "z$dhstrip_lib_matches" = "z0" ] ; then</span><br><span style="color: hsl(120, 100%, 40%);">+                                      echo "ERROR: Found no matching 'dh_strip -plib*$major' line in debian/rules for LIBVERSION=$libversion"</span><br><span style="color: hsl(120, 100%, 40%);">+                                     exit 1</span><br><span style="color: hsl(120, 100%, 40%);">+                                elif [ "z$dhstrip_lib_total" = "z1" ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+                                       echo "OK: Found 'dh_strip -plib*$major' in debian/rules for LIBVERSION=$libversion"</span><br><span style="color: hsl(120, 100%, 40%);">+                         else</span><br><span style="color: hsl(120, 100%, 40%);">+                                  echo "WARN: Found $dhstrip_lib_matches/$dhstrip_lib_total dh_strip matches 'dh_strip -plib*$major' in debian/rules for LIBVERSION=$libversion, manual check required!"</span><br><span style="color: hsl(120, 100%, 40%);">+                              fi</span><br><span style="color: hsl(120, 100%, 40%);">+                    fi</span><br><span>           done</span><br><span>                 # catch and forward exit from pipe subshell "while read":</span><br><span>          if [ $? -ne 0 ]; then</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/15097">change 15097</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/+/15097"/><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: Ib929bfac3689f35aaa58d7d079a46fff188b7e8e </div>
<div style="display:none"> Gerrit-Change-Number: 15097 </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>