diff options
-rw-r--r-- | compile.sh | 4 |
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 | ||
3 | num=0 | ||
3 | for file in src/*.txt; do # TODO: change this to work with globs & args & stuff | 4 | for 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)) | ||
12 | done | 14 | done |
13 | 15 | ||
14 | echo "Moving files to build directory ..." | 16 | echo "Moving files to build directory ..." |
15 | mv src/*.html ./ | 17 | mv src/*.html ./ |
18 | echo | ||
19 | echo "Finished compiling $num files." | ||