<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
  img {
    max-width: 100%;
    height: auto;
  }
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
  pre.commit-message {
    white-space: pre-wrap;
  }
  .file-stats a {
    text-decoration: none;
  }
  .file-stats .new-file {
    color: #090;
  }
  .file-stats .deleted-file {
    color: #B00;
  }
</style>
<body>
<div class='content'>
<h3>Amar Takhar 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/c7f10b57905f0c22f6378c22c2fa0588ff60458f">c7f10b57</a></strong>
<div>
<span>by Amar Takhar</span>
<i>at 2015-11-23T11:40:22Z</i>
</div>
<pre class='commit-message'>Add option for only building documentation.</pre>
</li>
</ul>
<h4>2 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
pylib/configure.py
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
wscript
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/c7f10b57905f0c22f6378c22c2fa0588ff60458f#diff-0'>
<strong>
pylib/configure.py
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/pylib/configure.py
</span><span style="color: #000000;background-color: #ddffdd">+++ b/pylib/configure.py
</span><span style="color: #aaaaaa">@@ -82,11 +82,12 @@ def cmd_configure(ctx):
</span>   ctx.find_program("asciidoc", var="BIN_ASCIIDOC", mandatory=False)
        ctx.find_program("a2x", var="BIN_A2X", mandatory=False)
 
<span style="color: #000000;background-color: #ffdddd">-        if ctx.options.enable_doc and not ctx.env.BIN_ASCIIDOC:
</span><span style="color: #000000;background-color: #ddffdd">+   if (ctx.options.enable_doc or ctx.options.enable_doc_only) and not ctx.env.BIN_ASCIIDOC:
</span>           ctx.fatal("asciidoc is required in order to build documentation")
<span style="color: #000000;background-color: #ffdddd">-        elif ctx.options.enable_doc:
</span><span style="color: #000000;background-color: #ddffdd">+   elif (ctx.options.enable_doc or ctx.options.enable_doc_only):
</span>           ctx.env.ASCIIDOC_FLAGS = ["-f", "%s/docs/asciidoc.conf" % ctx.srcnode.abspath()]
                ctx.env.ENABLE_DOC = True
<span style="color: #000000;background-color: #ddffdd">+                ctx.env.ENABLE_DOC_ONLY = ctx.options.enable_doc_only
</span> 
        # XXX: conditionally build this with --disable-man?  Should it build without docs enabled?
        ctx.env.A2X_FLAGS = ["--format", "manpage", "--asciidoc-opts=--conf-file=%s/docs/asciidoc.conf" % ctx.srcnode.abspath()]
</code></pre>

<br>
</li>
<li id='diff-1'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/c7f10b57905f0c22f6378c22c2fa0588ff60458f#diff-1'>
<strong>
wscript
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/wscript
</span><span style="color: #000000;background-color: #ddffdd">+++ b/wscript
</span><span style="color: #aaaaaa">@@ -41,6 +41,7 @@ def options(ctx):
</span>   grp.add_option('--enable-debug', action='store_true', default=False, help="Enable debugging code")
        grp.add_option('--enable-debug-gdb', action='store_true', default=False, help="Enable GDB debugging symbols")
        grp.add_option('--enable-doc', action='store_true', default=False, help="Build NTP documentation")
<span style="color: #000000;background-color: #ddffdd">+        grp.add_option('--enable-doc-only', action='store_true', default=False, help="Only build NTP documentation")
</span>   grp.add_option('--enable-a2x-xmllint', action='store_true', default=False, help="Build NTP documentation with a2x XML lint")
        grp.add_option('--enable-crypto', action='store_true', default=False, help="Enable OpenSSL.")
        grp.add_option('--disable-droproot', action='store_true', default=False, help="Disable dropping root.")
<span style="color: #aaaaaa">@@ -122,6 +123,9 @@ def build(ctx):
</span>   if ctx.env.ENABLE_DOC:
                ctx.recurse("docs")
 
<span style="color: #000000;background-color: #ddffdd">+        if ctx.env.ENABLE_DOC_ONLY:
+               return
+
</span>   ctx.recurse("libisc")
        if ctx.env.REFCLOCK_PARSE: # Only required by the parse refclock
                ctx.recurse("libparse")
</code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://gitlab.com/NTPsec/ntpsec/commit/c7f10b57905f0c22f6378c22c2fa0588ff60458f">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/c7f10b57905f0c22f6378c22c2fa0588ff60458f"}}</script>
</p>
</div>
</body>
</html>