about summary refs log tree commit diff stats
path: root/compile.sh
diff options
context:
space:
mode:
authorCase Duckworth2015-02-09 12:04:05 -0700
committerCase Duckworth2015-02-09 12:04:05 -0700
commit96ab7a3ce522f38a768e67c73021bf1071832a37 (patch)
tree1d04af8a849055fdec68cbebf538b6c86424f414 /compile.sh
parentFinish linking Elegy, Hezekiah; Rename files (diff)
downloadautocento-96ab7a3ce522f38a768e67c73021bf1071832a37.tar.gz
autocento-96ab7a3ce522f38a768e67c73021bf1071832a37.zip
Add Paul; move source files to src/
Diffstat (limited to 'compile.sh')
-rw-r--r--compile.sh15
1 files changed, 10 insertions, 5 deletions
diff --git a/compile.sh b/compile.sh index 3877be0..228af38 100644 --- a/compile.sh +++ b/compile.sh
@@ -1,10 +1,15 @@
1# for windows only right now 1# for windows only right now
2 2
3for file in *.txt; do # TODO: change this to work with globs & args & stuff 3for file in src/*.txt; do # TODO: change this to work with globs & args & stuff
4 pandoc -f markdown \ # all files are in pandoc's markdown 4 echo -n "Compiling $file ..."
5 -t html5 \ # they're being outputted to html5 5 pandoc -f markdown \
6 --template=_template.html \ # use this file as a template 6 -t html5 \
7 --smart \ # smart quotes, etc. 7 --template=_template.html \
8 --smart \
8 $file \ 9 $file \
9 -o "${file%.txt}.html" 10 -o "${file%.txt}.html"
11 echo " Done."
10done 12done
13
14echo "Moving files to build directory ..."
15mv src/*.html ./