From 4e4e5fa464de6c4057abc677ae316f6f1146909d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 27 Oct 2014 23:19:36 -0700 Subject: Factored make_site_index.sh out of Makefile. --- Makefile | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e16b962..f535698 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,6 @@ PREFIX?=/usr/local SPEC=spec.txt SITE=_site SPECVERSION=$(shell grep version: $(SPEC) | sed -e 's/version: *//') -VERSIONS=$(shell cd $(SITE); ls -d -1 0.* | sort -r -g) .PHONY: all spec leakcheck clean fuzztest dingus upload jshint test testjs benchjs update-site upload-site @@ -92,16 +91,8 @@ fuzztest: time cat /dev/urandom | head -c 100000 | iconv -f latin1 -t utf-8 | $(PROG) >/dev/null; done $(SITE)/index.html: spec.txt - (echo "% CommonMark Spec\n";\ - echo "[**Latest version ($(SPECVERSION))**](/$(SPECVERSION)/)\n"; \ - echo "Older versions:\n"; \ - for vers in $(VERSIONS); do \ - if [ "$$vers" != "$(SPECVERSION)" ]; then \ - perl -p -i -e 's/
.*?<\/div>/