about summary refs log tree commit diff stats
path: root/compile.sh
diff options
context:
space:
mode:
authorCase Duckworth2015-01-28 22:22:15 -0700
committerCase Duckworth2015-01-28 22:22:15 -0700
commitcbd5199529209059be3bde0d6572a1ba192b84d3 (patch)
tree9be2bc424c6e471a13ca09678fce77075d1b63fe /compile.sh
parentRevert "Include Elegies; template; pandoc compile" (diff)
downloadautocento-cbd5199529209059be3bde0d6572a1ba192b84d3.tar.gz
autocento-cbd5199529209059be3bde0d6572a1ba192b84d3.zip
Add Elegies; template; pandoc compile script
Diffstat (limited to 'compile.sh')
-rw-r--r--compile.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/compile.sh b/compile.sh new file mode 100644 index 0000000..3877be0 --- /dev/null +++ b/compile.sh
@@ -0,0 +1,10 @@
1# for windows only right now
2
3for file in *.txt; do # TODO: change this to work with globs & args & stuff
4 pandoc -f markdown \ # all files are in pandoc's markdown
5 -t html5 \ # they're being outputted to html5
6 --template=_template.html \ # use this file as a template
7 --smart \ # smart quotes, etc.
8 $file \
9 -o "${file%.txt}.html"
10done