summaryrefslogtreecommitdiffstats
path: root/doc/admin-guide/en-US/markdown/pdfgen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'doc/admin-guide/en-US/markdown/pdfgen.sh')
-rwxr-xr-xdoc/admin-guide/en-US/markdown/pdfgen.sh16
1 files changed, 16 insertions, 0 deletions
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
+