<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/300a376885cbcd2b97d2f0698da93bbf2f01d1d0">300a3768</a></strong>
<div>
<span>by Amar Takhar</span>
<i>at 2015-11-23T12:10:48Z</i>
</div>
<pre class='commit-message'>Add support for installing documentation.

  * Docs go into $PREFIX/share/ntpsec/docs/</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
docs/wscript
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/300a376885cbcd2b97d2f0698da93bbf2f01d1d0#diff-0'>
<strong>
docs/wscript
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/docs/wscript
</span><span style="color: #000000;background-color: #ddffdd">+++ b/docs/wscript
</span><span style="color: #aaaaaa">@@ -9,26 +9,35 @@ def build(ctx):
</span>           source  = doc_source
        )
 
<span style="color: #000000;background-color: #ddffdd">+        image_source = []
</span>   ctx.path.get_bld().make_node("hints").mkdir() # create 'hints' directory
        for dir in ["icons", "pic"]:
 
                files = ctx.path.ant_glob('%s/*' % dir) # Find images
                ctx.path.get_bld().make_node(dir).mkdir() # create 'pic' directory
<span style="color: #000000;background-color: #ddffdd">+                image_source += files
</span> 
<span style="color: #000000;background-color: #ffdddd">-                # Copy images
-               ctx(
-                       features        = "subst",
-                       is_copy         = True,
-                       source          = files,
-                       target          = [ctx.path.find_node(dir).get_bld().make_node(x.name) for x in files]
-               )
</span><span style="color: #000000;background-color: #ddffdd">+   # Copy images
+       ctx(
+               features        = "subst",
+               is_copy         = True,
+               source          = image_source,
+               target          = [ctx.path.find_node(dir).get_bld().make_node(x.name) for x in image_source]
+       )
</span> 
<span style="color: #000000;background-color: #ddffdd">+        extra = ["asciidoc.js"]
</span> 
        # Copy extra files
        ctx(
                features        = "subst",
                is_copy         = True,
<span style="color: #000000;background-color: #ffdddd">-                source          = ["asciidoc.js"],
-               target          = ["asciidoc.js"]
</span><span style="color: #000000;background-color: #ddffdd">+           source          = extra,
+               target          = extra
</span>   )
 
<span style="color: #000000;background-color: #ddffdd">+
+       # Install docs
+       install_prefix = "%s/share/ntpsec/docs/" % ctx.env.PREFIX
+
+       ctx.install_files(install_prefix, extra + [x.change_ext(".html").name for x in doc_source])
+       ctx.install_files(install_prefix, image_source, relative_trick=True)
</span></code></pre>

<br>
</li>

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

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