summaryrefslogtreecommitdiff
path: root/index.md.do
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-03-29 04:18:59 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-03-29 04:18:59 +0200
commit313e6a863be0931752aa21cf99f96195a6e2b8c6 (patch)
tree8c2f8adf65c95e31b1fd7b1ec7efeabca3a848d2 /index.md.do
parent29907c6c870933ec1031fa6499ea9994c96f7aa6 (diff)
downloaddirty-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.do3
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
8for x in "${LISTS[@]}"; do 8for x in "${LISTS[@]}"; do
9 printf "%s.html\0" "$x" 9 printf "%s.html\0" "$x"
10 printf "rss/%s.rss\0" "$(basename $x)"
10done | xargs -r -0 redo-ifchange 11done | xargs -r -0 redo-ifchange
11 12
12cat <<EOF 13cat <<EOF
@@ -21,6 +22,6 @@ EOF
21for x in "${LISTS[@]}"; do 22for 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"
26done 27done