summaryrefslogtreecommitdiff
path: root/list-chapters
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-05-12 11:56:33 +0100
committerLars Wirzenius <liw@liw.fi>2012-05-12 11:56:33 +0100
commit2a4bb211b6816b7e43b3f2c86d9236cf7919ae0e (patch)
tree40999bede00b4b05c8607672f3c34af5135f1a79 /list-chapters
parent6c42920c8073579ad0823dc0f3cd7a8186020a4f (diff)
downloadgtdfh.liw.fi-2a4bb211b6816b7e43b3f2c86d9236cf7919ae0e.tar.gz
Extract list of chapters from index.mdwn
There's no point in duplicating the list in Makefile.
Diffstat (limited to 'list-chapters')
-rwxr-xr-xlist-chapters6
1 files changed, 6 insertions, 0 deletions
diff --git a/list-chapters b/list-chapters
new file mode 100755
index 0000000..55daa28
--- /dev/null
+++ b/list-chapters
@@ -0,0 +1,6 @@
+#!/usr/bin/awk -f
+
+$2 == "[[!traillink" {
+ sub(/\]\].*/, " ")
+ print tolower($3) ".mdwn"
+}