summaryrefslogtreecommitdiff
path: root/index.md.do
diff options
context:
space:
mode:
Diffstat (limited to 'index.md.do')
-rw-r--r--index.md.do27
1 files changed, 0 insertions, 27 deletions
diff --git a/index.md.do b/index.md.do
deleted file mode 100644
index 3155cb7..0000000
--- a/index.md.do
+++ /dev/null
@@ -1,27 +0,0 @@
1#!/usr/bin/env bash
2
3LISTS=()
4while read -r -d $'\0'; do
5 LISTS+=("$REPLY")
6done < <(find lists -maxdepth 1 -mindepth 1 -type d -not -name '.*' -print0 | sort -z)
7
8for x in "${LISTS[@]}"; do
9 printf "%s.html\0" "$x"
10 printf "rss/%s.rss\0" "$(basename $x)"
11done | xargs -r -0 redo-ifchange
12
13cat <<EOF
14% Index
15
16This is a blog.
17It contains things.
18Send things to <blog@dirty-haskell.org> if you so choose.
19
20EOF
21
22for x in "${LISTS[@]}"; do
23 printf "* [%s](%s) ([RSS](rss/%s))\n" "$(<$x/title)" "$x.html" "$(basename $x).rss"
24 while read -r -d $'\n'; do
25 printf " %s\n" "$REPLY"
26 done < "$x/preview"
27done