aboutsummaryrefslogtreecommitdiff
path: root/mkfile
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-01-31 12:49:22 +0000
committerJohn Ankarström <john@ankarstrom.se>2021-01-31 12:49:22 +0000
commitdfb9b24814264abb429e4d289685654c469ff362 (patch)
tree9e4686fc56cfbb92ded6e514204210775da794b7 /mkfile
parent2f7147aa05cbdcb8b1b2470877dffc663cb7a83e (diff)
downloadem-dfb9b24814264abb429e4d289685654c469ff362.tar.gz
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).
Diffstat (limited to 'mkfile')
-rw-r--r--mkfile9
1 files changed, 7 insertions, 2 deletions
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/