summary refs log tree commit diff stats
path: root/tools/nimweb.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tools/nimweb.nim')
-rwxr-xr-xtools/nimweb.nim11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/nimweb.nim b/tools/nimweb.nim
index 135ba518a..ef59c2fb9 100755
--- a/tools/nimweb.nim
+++ b/tools/nimweb.nim
@@ -41,9 +41,9 @@ include "sunset.tmpl"
 
 const
   Version = "0.6"
-  Usage = "nimweb - Nimrod Installation Generator Version " & version & """
+  Usage = "nimweb - Nimrod Website Generator Version " & version & """
 
-  (c) 2008 Andreas Rumpf
+  (c) 2009 Andreas Rumpf
 Usage:
   nimweb [options] ini-file[.ini] [compile_options]
 Options:
@@ -159,7 +159,6 @@ proc buildDoc(c: var TConfigData, destPath: string) =
     Exec("nimrod rst2html $# -o:$# --index=$#/theindex $#" %
       [c.nimrodArgs, destPath / changeFileExt(splitFile(d).name, "html"),
        destpath, d])
-    Exec("nimrod rst2tex $# $#" % [c.nimrodArgs, d])
   for d in items(c.srcdoc):
     Exec("nimrod doc $# -o:$# --index=$#/theindex $#" %
       [c.nimrodArgs, destPath / changeFileExt(splitFile(d).name, "html"),
@@ -167,6 +166,12 @@ proc buildDoc(c: var TConfigData, destPath: string) =
   Exec("nimrod rst2html $1 -o:$2/theindex.html $2/theindex" %
        [c.nimrodArgs, destPath])
 
+proc buildPdfDoc(c: var TConfigData, destPath: string) =
+  for d in items(c.doc):
+    Exec("nimrod rst2tex $# $#" % [c.nimrodArgs, d])
+    
+
+
 proc buildAddDoc(c: var TConfigData, destPath: string) =
   # build additional documentation (without the index):
   for d in items(c.webdoc):