Package: nim / 0.16.0-1

dont-build-remote-website.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Don't build nim-lang.org website
 This is unnecessary to install on users' machines.
Author: Ximin Luo <infinity0@debian.org>
Forwarded: not-needed
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/tools/nimweb.nim
+++ b/tools/nimweb.nim
@@ -504,7 +504,8 @@
   buildNews(c, "web/news", "web/upload/news")
 
 proc main(c: var TConfigData) =
-  buildWebsite(c)
+  if not existsDir("web/upload"):
+    createDir("web/upload")
   buildJS("web/upload")
   const docup = "web/upload/" & NimVersion
   createDir(docup)