- Commit
- bd95b469f9db3e08c81ea66c355e9708bb6d5ae5
- Parent
- 23f9cdb763c31bec0ccc722408cfe12a9b0da1af
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Made make_site_index.sh more robust.
My personal build of CMark ✏️
Made make_site_index.sh more robust.
1 file changed, 8 insertions, 4 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | make_site_index.sh | 12 | 8 | 4 |
diff --git a/make_site_index.sh b/make_site_index.sh @@ -4,13 +4,17 @@ SPECVERSION=$1 SITE=_site VERSIONS=`cd $SITE; ls -d -1 0.* | sort -r -g` -echo "% CommonMark Spec\n" +echo "% CommonMark Spec" +echo "" date=`grep '<div class="version">' $SITE/$SPECVERSION/index.html | perl -pe 's/^.*(\d\d\d\d-\d\d-\d\d).*$/\1/'` -echo "[**Latest version ($SPECVERSION)**](/$SPECVERSION/) ($date)\n" +echo "[**Latest version ($SPECVERSION)**](/$SPECVERSION/) ($date)" +echo "" echo "[discussion forum](http://talk.commonmark.org/) | " echo "[interactive dingus](/dingus.html) | " -echo "[repository](https://github.com/jgm/CommonMark/)\n" -echo "Older versions:\n" +echo "[repository](https://github.com/jgm/CommonMark/)" +echo "" +echo "Older versions:" +echo "" for vers in $VERSIONS do date=`grep '<div class="version">' $SITE/$vers/index.html | perl -pe 's/^.*(\d\d\d\d-\d\d-\d\d).*$/\1/'`