aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-01-31 18:31:20 +0000
committerJohn Ankarström <john@ankarstrom.se>2021-01-31 18:31:20 +0000
commite17d5accf61e817fd71de5ea0e5c22b154d3d436 (patch)
tree58044e72e37a0b8b89199b90d87cae9ff3218d48
parent3ab42a5fb02a2652cae089bd3f936729fd49382d (diff)
downloadem-e17d5accf61e817fd71de5ea0e5c22b154d3d436.tar.gz
Fix aux/getflags bug when called from mk
Kind of bad that aux/getflags gets so confused when flag* variables are already set.
-rwxr-xr-xhtindex1
-rwxr-xr-xhtwrap1
-rw-r--r--mkfile5
3 files changed, 3 insertions, 4 deletions
diff --git a/htindex b/htindex
index b3f88f1..4c0f03d 100755
--- a/htindex
+++ b/htindex
@@ -1,4 +1,5 @@
#!/bin/rc -e
+rfork E
# index -- add ids to headings and print index to stderr
diff --git a/htwrap b/htwrap
index 4b7de46..97fa445 100755
--- a/htwrap
+++ b/htwrap
@@ -1,4 +1,5 @@
#!/bin/rc -e
+rfork E
# htwrap -- create standalone HTML document
diff --git a/mkfile b/mkfile
index e50c6be..e24a5c6 100644
--- a/mkfile
+++ b/mkfile
@@ -1,9 +1,6 @@
test.html: test.em
path=(. /bin)
- ramfs -p
- em test.em > /tmp/1
- htwrap -t /tmp/1 > /tmp/2
- htindex -s /tmp/2 > test.html
+ em test.em | htwrap -t | htindex -s > test.html
README.html: README
path=(. /bin)