cmark

Unnamed repository; edit this file 'description' to name the repository.

commit bd95b469f9db3e08c81ea66c355e9708bb6d5ae5
parent 23f9cdb763c31bec0ccc722408cfe12a9b0da1af
Author: John MacFarlane <jgm@berkeley.edu>
Date:   Mon,  3 Nov 2014 17:46:14 -0800

Made make_site_index.sh more robust.

Diffstat:
Mmake_site_index.sh | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
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/'`