<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>
<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<h3>
Gary E. Miller pushed to branch master
at <a href="https://gitlab.com/NTPsec/ntpsec">NTPsec / ntpsec</a>
</h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.com/NTPsec/ntpsec/commit/4f37564b6942a9ac6104b7a65ae5486d878747f7">4f37564b</a></strong>
<div>
<span>by Gary E. Miller</span>
<i>at 2018-12-12T01:48:37Z</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">ntpleapfetch: Fix some more GNU-isms.
"echo -n" is not in the BSD shell. Also sed "!d" seems broken on
BSD. Note that osX also uses the BSD tools.
Now ntpleapfetch fails later in the process.
</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class="file-stats">
<a href="#906c49bdad1a53ff27bdc6b1ab8bec35b7ee171a">
ntpclients/ntpleapfetch
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id="906c49bdad1a53ff27bdc6b1ab8bec35b7ee171a">
<a href="https://gitlab.com/NTPsec/ntpsec/commit/4f37564b6942a9ac6104b7a65ae5486d878747f7#906c49bdad1a53ff27bdc6b1ab8bec35b7ee171a"><strong>ntpclients/ntpleapfetch</strong></a>
<hr>
<table class="code white" style="font-family: monospace; font-size: 90%;" bgcolor="#fff" width="100%" cellpadding="0" cellspacing="0">
<tr class="line_holder match" id="" style="line-height: 1.6;">
<td class="diff-line-num unfold js-unfold old_line" data-linenumber="290" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">...</td>
<td class="diff-line-num unfold js-unfold new_line" data-linenumber="290" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">...</td>
<td class="line_content match " style="padding-left: 0.5em; padding-right: 0.5em; color: rgba(0,0,0,0.3);" bgcolor="#fafafa">@@ -290,11 +290,11 @@ verifySHA1() {</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="290" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
290
</td>
<td class="diff-line-num new_line" data-linenumber="290" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
290
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC290" class="line" lang="shell"></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="291" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
291
</td>
<td class="diff-line-num new_line" data-linenumber="291" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
291
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC291" class="line" lang="shell"> <span class="c" style="color: #998; font-style: italic;"># Remove comments, except those that are markers for last update, expires and hash</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="292" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
292
</td>
<td class="diff-line-num new_line" data-linenumber="292" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
292
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC292" class="line" lang="shell"></span>
</pre>
</td>
</tr>
<tr class="line_holder old" id="" style="line-height: 1.6;">
<td class="diff-line-num old old_line" data-linenumber="293" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #fac5cd; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#f9d7dc">
293
</td>
<td class="diff-line-num new_line old" data-linenumber="293" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #fac5cd; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#f9d7dc">
</td>
<td class="line_content noteable_line old" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#fbe9eb">
<pre style="margin: 0;">-<span id="LC293" class="line" lang="shell"> <span class="nb" style="color: #0086b3;">local </span><span class="nv" style="color: teal;">RAW</span><span class="o" style="font-weight: 600;">=</span><span class="s2" style="color: #d14;">"</span><span class="sb" style="color: #d14;">`</span><span class="nb" style="color: #0086b3;">sed</span> <span class="nt" style="color: navy;">-<span class="idiff left">e</span></span><span class="s1" style="color: #d14;"><span class="idiff">'/^\\([0-9]\\|#[\$@h]\)/!d'</span></span><span class="idiff"> </span><span class="nt" style="color: navy;"><span class="idiff">-e</span></span><span class="s1" style="color: #d14;"><span class="idiff">'/^#[\$@h]/!s/#.*\$//g'</span></span><span class="idiff"> </span><span class="nv" style="color: teal;"><span class="idiff right">$1</span></span><span class="sb" style="color: #d14;">`</span><span class="s2" style="color: #d14;">"</span></span>
</pre>
</td>
</tr>
<tr class="line_holder new" id="" style="line-height: 1.6;">
<td class="diff-line-num new old_line" data-linenumber="294" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
</td>
<td class="diff-line-num new new_line" data-linenumber="293" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
293
</td>
<td class="line_content new noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#ecfdf0">
<pre style="margin: 0;">+<span id="LC293" class="line" lang="shell"> <span class="nb" style="color: #0086b3;">local </span><span class="nv" style="color: teal;">RAW</span><span class="o" style="font-weight: 600;">=</span><span class="s2" style="color: #d14;">"</span><span class="sb" style="color: #d14;">`</span><span class="nb" style="color: #0086b3;">sed</span> <span class="nt" style="color: navy;">-<span class="idiff left">ne</span></span><span class="s1" style="color: #d14;"><span class="idiff">'/^#[\$@h]/p;/^[^#]/s/.#.*$//p'</span></span><span class="idiff"> </span><span class="nv" style="color: teal;"><span class="idiff">$1</span></span><span class="idiff right"> </span><span class="sb" style="color: #d14;">`</span><span class="s2" style="color: #d14;">"</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="294" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
294
</td>
<td class="diff-line-num new_line" data-linenumber="294" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
294
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC294" class="line" lang="shell"></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="295" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
295
</td>
<td class="diff-line-num new_line" data-linenumber="295" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
295
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC295" class="line" lang="shell"> <span class="c" style="color: #998; font-style: italic;"># Extract just the data, removing all whitespace</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="296" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
296
</td>
<td class="diff-line-num new_line" data-linenumber="296" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
296
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC296" class="line" lang="shell"></span>
</pre>
</td>
</tr>
<tr class="line_holder old" id="" style="line-height: 1.6;">
<td class="diff-line-num old old_line" data-linenumber="297" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #fac5cd; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#f9d7dc">
297
</td>
<td class="diff-line-num new_line old" data-linenumber="297" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #fac5cd; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#f9d7dc">
</td>
<td class="line_content noteable_line old" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#fbe9eb">
<pre style="margin: 0;">-<span id="LC297" class="line" lang="shell"> <span class="nb" style="color: #0086b3;">local </span><span class="nv" style="color: teal;">D<span class="idiff left">ATA</span></span><span class="o" style="font-weight: 600;"><span class="idiff">=</span></span><span class="s2" style="color: #d14;"><span class="idiff">"</span></span><span class="sb" style="color: #d14;"><span class="idiff">`</span></span><span class="nb" style="color: #0086b3;"><span class="idiff">echo</span></span><span class="idiff"> </span><span class="se" style="color: #d14;"><span class="idiff">\"</span></span><span class="nv" style="color: teal;"><span class="idiff">$RAW</span></span><span class="se" style="color: #d14;"><span class="idiff">\"</span></span><span class="idiff"> | </span><span class="nb" style="color: #0086b3;"><span class="idiff">sed</span></span><span class="idiff"> </span><span class="nt" style="color: navy;"><span class="idiff">-e</span></span><span class="s1" style="color: #d14;"><span class="idiff">'/^#h/d'</span></span><span class="idiff"> </span><span class="nt" style="color: navy;"><span class="idiff">-e</span></span><span class="s1" style="color: #d14;"><span class="idiff">'s/^#[\$@]//g'</span></span><span class="idiff"> | </span><span class="nb" style="color: #0086b3;"><span class="idiff">tr</span></span><span class="idiff"> </span><span class="nt" style="color: navy;"><span class="idiff">-d</span></span><span class="idiff"> </span><span class="s1" style="color: #d14;"><span class="idiff right">'[:space:]</span>'</span><span class="sb" style="color: #d14;">`</span><span class="s2" style="color: #d14;">"</span></span>
</pre>
</td>
</tr>
<tr class="line_holder new" id="" style="line-height: 1.6;">
<td class="diff-line-num new old_line" data-linenumber="298" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
</td>
<td class="diff-line-num new new_line" data-linenumber="297" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
297
</td>
<td class="line_content new noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#ecfdf0">
<pre style="margin: 0;">+<span id="LC297" class="line" lang="shell"> <span class="nb" style="color: #0086b3;">local </span><span class="nv" style="color: teal;">D<span class="idiff left">SHA1</span></span><span class="o" style="font-weight: 600;"><span class="idiff">=</span></span><span class="s2" style="color: #d14;"><span class="idiff">"</span></span><span class="sb" style="color: #d14;"><span class="idiff">`</span></span><span class="nb" style="color: #0086b3;"><span class="idiff">printf</span></span><span class="idiff"> </span><span class="se" style="color: #d14;"><span class="idiff">\"</span></span><span class="nv" style="color: teal;"><span class="idiff">$DATA</span></span><span class="se" style="color: #d14;"><span class="idiff">\"</span></span><span class="idiff"> | </span><span class="nv" style="color: teal;"><span class="idiff">$SHASUM</span></span><span class="idiff"> | </span><span class="nb" style="color: #0086b3;"><span class="idiff">sed</span></span><span class="idiff"> </span><span class="nt" style="color: navy;"><span class="idiff">-e</span></span><span class="s1" style="color: #d14;"><span class="idiff right">'s/[? *].*$//</span>'</span><span class="sb" style="color: #d14;">`</span><span class="s2" style="color: #d14;">"</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="298" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
298
</td>
<td class="diff-line-num new_line" data-linenumber="298" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
298
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC298" class="line" lang="shell"></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="299" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
299
</td>
<td class="diff-line-num new_line" data-linenumber="299" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
299
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC299" class="line" lang="shell"> <span class="c" style="color: #998; font-style: italic;"># Compute the SHA1 hash of the data, removing the marker and filename</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="300" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
300
</td>
<td class="diff-line-num new_line" data-linenumber="300" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
300
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC300" class="line" lang="shell"> <span class="c" style="color: #998; font-style: italic;"># Computed in binary mode, which shouldn't matter since whitespace</span></span>
</pre>
</td>
</tr>
</table>
<br>
</li>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777777;">
—
<br>
<a href="https://gitlab.com/NTPsec/ntpsec/commit/4f37564b6942a9ac6104b7a65ae5486d878747f7">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://gitlab.com/NTPsec/ntpsec/commit/4f37564b6942a9ac6104b7a65ae5486d878747f7"}}</script>
</p>
</div>
</body>
</html>