diff options
author | Case Duckworth | 2015-03-01 18:10:13 -0700 |
---|---|---|
committer | Case Duckworth | 2015-03-01 18:10:13 -0700 |
commit | 1a61613afa00ebbf59fe6d12c3c7d7ea6cb6ccec (patch) | |
tree | 5f14a4666e7bdb18ade2d691708e4214d9981b68 | |
parent | Fix typographical problems in src/ (diff) | |
download | autocento-1a61613afa00ebbf59fe6d12c3c7d7ea6cb6ccec.tar.gz autocento-1a61613afa00ebbf59fe6d12c3c7d7ea6cb6ccec.zip |
Add count to compile.sh
-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." | ||