summary refs log tree commit diff stats
path: root/koch.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-12-19 13:44:56 +0100
committerAraq <rumpf_a@web.de>2014-12-19 13:44:56 +0100
commit76c3b314dcd0e67fae8bd9b113753480267dfdae (patch)
tree01f3a0d8eed5b7a8de1f9f18e35cb7cbd7541e80 /koch.nim
parentd4230e052d1229ba8128e3630a84f7decfd09d75 (diff)
downloadNim-76c3b314dcd0e67fae8bd9b113753480267dfdae.tar.gz
implemented 'koch pdf'
Diffstat (limited to 'koch.nim')
-rw-r--r--koch.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/koch.nim b/koch.nim
index 2c7d49cf1..79228c1a4 100644
--- a/koch.nim
+++ b/koch.nim
@@ -45,6 +45,7 @@ Possible Commands:
   web [options]            generates the website and the full documentation
   website [options]        generates only the website
   csource [options]        builds the C sources for installation
+  pdf                      builds the PDF documentation
   zip                      builds the installation ZIP package
   nsis [options]           builds the NSIS Setup installer (for Windows)
   tests [options]          run the testsuite
@@ -129,6 +130,10 @@ proc website(args: string) =
   exec("$# cc -r tools/nimweb.nim $# --website web/nim --putenv:nimversion=$#" %
        [findNim(), args, VersionAsString])
 
+proc pdf(args="") =
+  exec("$# cc -r tools/nimweb.nim $# --pdf web/nim --putenv:nimversion=$#" %
+       [findNim(), args, VersionAsString])
+
 # -------------- boot ---------------------------------------------------------
 
 const
@@ -351,6 +356,7 @@ of cmdArgument:
   of "clean": clean(op.cmdLineRest)
   of "web": web(op.cmdLineRest)
   of "website": website(op.cmdLineRest)
+  of "pdf": pdf()
   of "csource", "csources": csource(op.cmdLineRest)
   of "zip": zip(op.cmdLineRest)
   of "nsis": nsis(op.cmdLineRest)