about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2015-03-01 18:10:13 -0700
committerCase Duckworth2015-03-01 18:10:13 -0700
commit1a61613afa00ebbf59fe6d12c3c7d7ea6cb6ccec (patch)
tree5f14a4666e7bdb18ade2d691708e4214d9981b68
parentFix typographical problems in src/ (diff)
downloadautocento-1a61613afa00ebbf59fe6d12c3c7d7ea6cb6ccec.tar.gz
autocento-1a61613afa00ebbf59fe6d12c3c7d7ea6cb6ccec.zip
Add count to compile.sh
-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."