diff options
author | Viktor Kleen <viktor@kleen.org> | 2015-01-02 09:29:04 +0000 |
---|---|---|
committer | Viktor Kleen <viktor@kleen.org> | 2015-01-02 09:29:04 +0000 |
commit | f7d4ba2023ab18b9d7c5fad85cbb863c61e6272c (patch) | |
tree | 7ffe93f3629546f8a0cb4ca7c7c7ce70196e4387 /index.md.do | |
download | dirty-haskell.org-f7d4ba2023ab18b9d7c5fad85cbb863c61e6272c.tar dirty-haskell.org-f7d4ba2023ab18b9d7c5fad85cbb863c61e6272c.tar.gz dirty-haskell.org-f7d4ba2023ab18b9d7c5fad85cbb863c61e6272c.tar.bz2 dirty-haskell.org-f7d4ba2023ab18b9d7c5fad85cbb863c61e6272c.tar.xz dirty-haskell.org-f7d4ba2023ab18b9d7c5fad85cbb863c61e6272c.zip |
initial commit
Diffstat (limited to 'index.md.do')
-rw-r--r-- | index.md.do | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/index.md.do b/index.md.do new file mode 100644 index 0000000..02c10af --- /dev/null +++ b/index.md.do | |||
@@ -0,0 +1,18 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | LISTS=() | ||
3 | while read -r -d $'\0'; do | ||
4 | LISTS+=("$REPLY") | ||
5 | done < <(find lists -maxdepth 1 -mindepth 1 -type d -not -name '.*' -print0 | sort -z) | ||
6 | |||
7 | for x in "${LISTS[@]}"; do | ||
8 | printf "%s.html\0" "$x" | ||
9 | done | xargs -r -0 redo-ifchange | ||
10 | |||
11 | cat <<EOF | ||
12 | % Index | ||
13 | |||
14 | EOF | ||
15 | |||
16 | for x in "${LISTS[@]}"; do | ||
17 | printf "* [%s](%s)\n" "$(<$x/title)" "$x.html" | ||
18 | done | ||