aboutsummaryrefslogtreecommitdiff
path: root/aux/emcollect
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-01-30 13:22:38 +0000
committerJohn Ankarström <john@ankarstrom.se>2021-01-30 13:22:38 +0000
commitd165d39c08ebc8be6ef3662022196758ef580f80 (patch)
tree3fc9d613bbfcbcefc7a3ddc6cb70fed838b18d39 /aux/emcollect
parentf9535fc7d640f6a908a22032087976e654911da3 (diff)
downloadem-d165d39c08ebc8be6ef3662022196758ef580f80.tar.gz
Move aux files to root directory
Diffstat (limited to 'aux/emcollect')
-rwxr-xr-xaux/emcollect18
1 files changed, 0 insertions, 18 deletions
diff --git a/aux/emcollect b/aux/emcollect
deleted file mode 100755
index 55434ac..0000000
--- a/aux/emcollect
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/awk -f
-
-# aux/emcollect -- collect hyperlink references in em source
-
-function collect(line) {
- left = $0
- right = $0
- sub("^ \\[", "", left)
- sub("\\].*$", "", left)
- sub("^ \\[[0-9a-z]\\]+ ", "", right)
- printf "%s=%s\n", left, right
-}
-
-BEGIN { expectblock = 1 }
-
-/^$/ { expectblock = 1; getline }
-expectblock && /^ \[[0-9a-z]\]+ / { block = "nl"; expectblock = 0 }
-block = "nl" && /^ \[[0-9a-z]\]+ [^ ]+$/ { collect($0); next }