about summary refs log tree commit diff stats
path: root/compile.sh
blob: 85e7bca5f4a66d9eee54ec3f3b3d7d49439c8e8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# for windows only right now

num=0
for file in src/*.txt; do # TODO: change this to work with globs & args & stuff
    echo -n "Compiling $file ..."
    pandoc -f markdown \
           -t html5 \
           --template=_template.html \
           --smart \
           $file \
           -o "${file%.txt}.html"
    echo " Done."
    ((num += 1))
done

echo "Moving files to build directory ..."
mv src/*.html ./
echo
echo "Finished compiling $num files."