summaryrefslogtreecommitdiff
path: root/mkdoc
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@gmail.com>2015-10-13 18:38:33 -0400
committerKurt Jung <kurt.w.jung@gmail.com>2015-10-13 18:38:33 -0400
commitf10939e21402781b0b6223dd64110df2da085ba0 (patch)
treebfd6c9f94c062d79128bbd709ef87726296d7e15 /mkdoc
parent91d6aa7e2b6be8ce62e0598312ff618f68c66e47 (diff)
Include links to reference PDFs in README
Diffstat (limited to 'mkdoc')
-rwxr-xr-xmkdoc11
1 files changed, 9 insertions, 2 deletions
diff --git a/mkdoc b/mkdoc
index 301c39f..213becc 100755
--- a/mkdoc
+++ b/mkdoc
@@ -1,3 +1,5 @@
+#!/bin/bash
+
# https://github.com/jimmyfrasche/autoreadme
autoreadme -f -template README.md.template
# Improve the appearance of the markdown document with features unavailable in godoc
@@ -16,5 +18,10 @@ cat README.md | tr '\n' '\v' | sed \
-e 's/test.coverage.(\(https:\/\/blog\.golang\.org\/cover\))/[test coverage](\1)/g' \
-e 's/Pull.requests.(\(https:\/\/help\.github\.com\/articles\/using\-pull\-requests\/\))/[Pull requests](\1)/g' \
-e 's/Your change should\v/Your change should\v\v/g' \
- | tr '\v' '\n' > 0
-mv 0 README.md
+ -e 's/##Nonstandard Fonts/__PDFS__\v\v##Nonstandard Fonts/g' \
+ | tr '\v' '\n' > _0
+sed -e '/__PDFS__/,$d' _0 > _1
+go run list/list.go >> _1
+sed -e '1,/__PDFS__/d' _0 >> _1
+rm _0
+mv _1 README.md