summaryrefslogtreecommitdiff
path: root/lists
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-03-29 01:36:29 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2015-03-29 01:36:29 +0100
commit316dfb918c586fa1743b9389729177375e883d9a (patch)
treecb09add72da071f8525a30357dddd2968e5708cc /lists
parent1cd451e7fae7109449833c006cc5d2eec64c27ae (diff)
downloaddirty-haskell.org-316dfb918c586fa1743b9389729177375e883d9a.tar
dirty-haskell.org-316dfb918c586fa1743b9389729177375e883d9a.tar.gz
dirty-haskell.org-316dfb918c586fa1743b9389729177375e883d9a.tar.bz2
dirty-haskell.org-316dfb918c586fa1743b9389729177375e883d9a.tar.xz
dirty-haskell.org-316dfb918c586fa1743b9389729177375e883d9a.zip
Move from cabal sandbox to nix environment
Diffstat (limited to 'lists')
-rw-r--r--lists/default.md.do6
1 files changed, 1 insertions, 5 deletions
diff --git a/lists/default.md.do b/lists/default.md.do
index 121955e..55abe6f 100644
--- a/lists/default.md.do
+++ b/lists/default.md.do
@@ -1,10 +1,6 @@
1#!/usr/bin/env bash 1#!/usr/bin/env bash
2redo-ifchange "$2/title" 2redo-ifchange "$2/title"
3 3
4extracttitle() {
5 runhaskell -package-conf=$(find ../.cabal-sandbox -maxdepth 1 -iname '*.conf.d' | head -n 1) ../build/extract-title.hs $@ 2>&1 | grep 'title: ' | cut -d ' ' -f '2-'
6}
7
8POSTS=() 4POSTS=()
9while read -r -d $'\0'; do 5while read -r -d $'\0'; do
10 post=$(realpath --relative-to=. "$REPLY") 6 post=$(realpath --relative-to=. "$REPLY")
@@ -24,7 +20,7 @@ EOF
24 20
25POST_TITLES=() 21POST_TITLES=()
26for x in "${POSTS[@]}"; do 22for x in "${POSTS[@]}"; do
27 title=$(pandoc -t json "$x" | extracttitle) 23 title=$(pandoc -t json "$x" | ../build/extract-title.hs)
28 POST_TITLES+=("$title") 24 POST_TITLES+=("$title")
29done 25done
30 26