diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-08-03 12:49:29 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-08-03 12:49:29 +0200 |
commit | 230688a0b842cf57b316a7ba62910ca387afbce7 (patch) | |
tree | 6367087d25147335972cacf19bd34fb868863fd7 /index.md.do | |
parent | 7170488c37105691f4a690cbcf1e43000d779b59 (diff) | |
download | dirty-haskell.org-230688a0b842cf57b316a7ba62910ca387afbce7.tar dirty-haskell.org-230688a0b842cf57b316a7ba62910ca387afbce7.tar.gz dirty-haskell.org-230688a0b842cf57b316a7ba62910ca387afbce7.tar.bz2 dirty-haskell.org-230688a0b842cf57b316a7ba62910ca387afbce7.tar.xz dirty-haskell.org-230688a0b842cf57b316a7ba62910ca387afbce7.zip |
Start of complete rewrite to switch to hakyll
Diffstat (limited to 'index.md.do')
-rw-r--r-- | index.md.do | 27 |
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 | |||
3 | LISTS=() | ||
4 | while read -r -d $'\0'; do | ||
5 | LISTS+=("$REPLY") | ||
6 | done < <(find lists -maxdepth 1 -mindepth 1 -type d -not -name '.*' -print0 | sort -z) | ||
7 | |||
8 | for x in "${LISTS[@]}"; do | ||
9 | printf "%s.html\0" "$x" | ||
10 | printf "rss/%s.rss\0" "$(basename $x)" | ||
11 | done | xargs -r -0 redo-ifchange | ||
12 | |||
13 | cat <<EOF | ||
14 | % Index | ||
15 | |||
16 | This is a blog. | ||
17 | It contains things. | ||
18 | Send things to <blog@dirty-haskell.org> if you so choose. | ||
19 | |||
20 | EOF | ||
21 | |||
22 | for 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" | ||
27 | done | ||