summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--compile.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/compile.sh b/compile.sh index 228af38..85e7bca 100644 --- a/compile.sh +++ b/compile.sh
@@ -1,5 +1,6 @@
1# for windows only right now 1# for windows only right now
2 2
3num=0
3for file in src/*.txt; do # TODO: change this to work with globs & args & stuff 4for file in src/*.txt; do # TODO: change this to work with globs & args & stuff
4 echo -n "Compiling $file ..." 5 echo -n "Compiling $file ..."
5 pandoc -f markdown \ 6 pandoc -f markdown \
@@ -9,7 +10,10 @@ for file in src/*.txt; do # TODO: change this to work with globs & args & stuff
9 $file \ 10 $file \
10 -o "${file%.txt}.html" 11 -o "${file%.txt}.html"
11 echo " Done." 12 echo " Done."
13 ((num += 1))
12done 14done
13 15
14echo "Moving files to build directory ..." 16echo "Moving files to build directory ..."
15mv src/*.html ./ 17mv src/*.html ./
18echo
19echo "Finished compiling $num files."