aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-10-27 09:16:12 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-10-27 09:16:12 -0700
commit05bd7217ed9e33341333b1bfd47a134889eff77c (patch)
treefaebd7eeb8140496f3b01a2eaf63b4ab6abcac02
parent143f3f5cf2630367fe7d614fb79d834601cad8d0 (diff)
Include dates in list of versions.
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a517083..30bf33a 100644
--- a/Makefile
+++ b/Makefile
@@ -92,7 +92,8 @@ fuzztest:
_site/spec.html: spec.txt
(echo "% CommonMark Spec\n";\
for vers in $(shell cd _site; ls -d -t 0.*) ; do \
- echo "- [Version $$vers](/$$vers/)" ; done) | \
+ date=`stat -t "%Y-%m-%d" -f "%Sa" _site/$$vers/index.html`; \
+ echo "- [Version $$vers ($$date)](/$$vers/)" ; done) | \
pandoc --template template.html -S -s -t html5 -o $@
_site/index.html: _site/spec.html