blob: 68b320617b113b096621619b898f68c3a930b3d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
|