From dfb9b24814264abb429e4d289685654c469ff362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 31 Jan 2021 12:49:22 +0000 Subject: Add index script Index automatically adds appropriate ids to HTML headings and prints an index of all headings on stderr (unless given the -s, silent, option). --- mkfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'mkfile') diff --git a/mkfile b/mkfile index f153627..84e93b3 100644 --- a/mkfile +++ b/mkfile @@ -1,8 +1,13 @@ test.html: - path=(. /bin) em test.em > test.html + path=(. /bin) + ramfs -p + em test.em > /tmp/1 + htwrap -t /tmp/1 > /tmp/2 + index -s /tmp/2 > test.html README.html: README - path=(. /bin) em README > README.html + path=(. /bin) + em README > README.html install: cp em emcollect emparse htwrap /rc/bin/ -- cgit v1.2.3