summaryrefslogtreecommitdiffstats
path: root/doc/admin-guide
diff options
context:
space:
mode:
Diffstat (limited to 'doc/admin-guide')
-rw-r--r--doc/admin-guide/en-US/markdown/.gitignore2
-rwxr-xr-xdoc/admin-guide/en-US/markdown/pdfgen.sh16
2 files changed, 18 insertions, 0 deletions
diff --git a/doc/admin-guide/en-US/markdown/.gitignore b/doc/admin-guide/en-US/markdown/.gitignore
new file mode 100644
index 00000000000..9eed460045f
--- /dev/null
+++ b/doc/admin-guide/en-US/markdown/.gitignore
@@ -0,0 +1,2 @@
+output/*.pdf
+
diff --git a/doc/admin-guide/en-US/markdown/pdfgen.sh b/doc/admin-guide/en-US/markdown/pdfgen.sh
new file mode 100755
index 00000000000..68b320617b1
--- /dev/null
+++ b/doc/admin-guide/en-US/markdown/pdfgen.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+# pdfgen.sh simple pdf generation helper script.
+# Copyright (C) 2012-2013 James Shubin
+# Written by James Shubin <james@shubin.ca>
+
+#dir='/tmp/pdf'
+dir=`pwd`'/output/'
+ln -s ../images images
+mkdir -p "$dir"
+
+for i in *.md; do
+ pandoc $i -o "$dir"`echo $i | sed 's/\.md$/\.pdf/'`
+done
+
+rm images # remove symlink
+