summaryrefslogtreecommitdiff
path: root/make_site_index.sh
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-07 10:52:41 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-07 10:52:41 -0800
commitdc31167e9d4053fa000f52163afe74ea9d6fc751 (patch)
tree852e9619970b4b0a5ad5acbb07a34634b53e4bff /make_site_index.sh
parentaf75d8303c459594df0884204d20b8d8cb443c11 (diff)
Moved site building targets to _site/Makefile.
Diffstat (limited to 'make_site_index.sh')
-rwxr-xr-xmake_site_index.sh25
1 files changed, 0 insertions, 25 deletions
diff --git a/make_site_index.sh b/make_site_index.sh
deleted file mode 100755
index 8a00018..0000000
--- a/make_site_index.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-SPECVERSION=$1
-SITE=_site
-VERSIONS=`cd $SITE; ls -d -1 0.* | sort -r -g`
-
-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)"
-echo ""
-echo "[discussion forum](http://talk.commonmark.org/) | "
-echo "[interactive dingus](/dingus.html) | "
-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/'`
- if [ "$vers" != "$SPECVERSION" ]; then
- perl -p -i -e 's/<div id="watermark">.*?<\/div>/<div id="watermark" style="background-color:black">This is an older version of the spec. For the most recent version, see <a href="http:\/\/spec.commonmark.org">http:\/\/spec.commonmark.org<\/a>.<\/div>/' $SITE/$vers/index.html
- echo "- [$vers](/$vers/) ($date)"
- fi
- done