diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-03-29 04:18:59 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-03-29 04:18:59 +0200 |
commit | 313e6a863be0931752aa21cf99f96195a6e2b8c6 (patch) | |
tree | 8c2f8adf65c95e31b1fd7b1ec7efeabca3a848d2 /index.md.do | |
parent | 29907c6c870933ec1031fa6499ea9994c96f7aa6 (diff) | |
download | dirty-haskell.org-313e6a863be0931752aa21cf99f96195a6e2b8c6.tar dirty-haskell.org-313e6a863be0931752aa21cf99f96195a6e2b8c6.tar.gz dirty-haskell.org-313e6a863be0931752aa21cf99f96195a6e2b8c6.tar.bz2 dirty-haskell.org-313e6a863be0931752aa21cf99f96195a6e2b8c6.tar.xz dirty-haskell.org-313e6a863be0931752aa21cf99f96195a6e2b8c6.zip |
Now generating RSS feeds for all lists
Diffstat (limited to 'index.md.do')
-rw-r--r-- | index.md.do | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/index.md.do b/index.md.do index 605bbb0..f9def9c 100644 --- a/index.md.do +++ b/index.md.do | |||
@@ -7,6 +7,7 @@ done < <(find lists -maxdepth 1 -mindepth 1 -type d -not -name '.*' -print0 | so | |||
7 | 7 | ||
8 | for x in "${LISTS[@]}"; do | 8 | for x in "${LISTS[@]}"; do |
9 | printf "%s.html\0" "$x" | 9 | printf "%s.html\0" "$x" |
10 | printf "rss/%s.rss\0" "$(basename $x)" | ||
10 | done | xargs -r -0 redo-ifchange | 11 | done | xargs -r -0 redo-ifchange |
11 | 12 | ||
12 | cat <<EOF | 13 | cat <<EOF |
@@ -21,6 +22,6 @@ EOF | |||
21 | for x in "${LISTS[@]}"; do | 22 | for x in "${LISTS[@]}"; do |
22 | printf "* [%s](%s)\n" "$(<$x/title)" "$x.html" | 23 | printf "* [%s](%s)\n" "$(<$x/title)" "$x.html" |
23 | while read -r -d $'\n'; do | 24 | while read -r -d $'\n'; do |
24 | printf " %s\n" "$REPLY" | 25 | printf " %s ([RSS](rss/%s))\n" "$REPLY" "$(basename $x).rss" |
25 | done < "$x/preview" | 26 | done < "$x/preview" |
26 | done | 27 | done |