diff options
Diffstat (limited to 'compile.sh')
-rw-r--r-- | compile.sh | 15 |
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 | ||
3 | for file in *.txt; do # TODO: change this to work with globs & args & stuff | 3 | for 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." | ||
10 | done | 12 | done |
13 | |||
14 | echo "Moving files to build directory ..." | ||
15 | mv src/*.html ./ | ||