diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-03-29 01:36:29 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-03-29 01:36:29 +0100 |
commit | 316dfb918c586fa1743b9389729177375e883d9a (patch) | |
tree | cb09add72da071f8525a30357dddd2968e5708cc /lists | |
parent | 1cd451e7fae7109449833c006cc5d2eec64c27ae (diff) | |
download | dirty-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.do | 6 |
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 |
2 | redo-ifchange "$2/title" | 2 | redo-ifchange "$2/title" |
3 | 3 | ||
4 | extracttitle() { | ||
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 | |||
8 | POSTS=() | 4 | POSTS=() |
9 | while read -r -d $'\0'; do | 5 | while read -r -d $'\0'; do |
10 | post=$(realpath --relative-to=. "$REPLY") | 6 | post=$(realpath --relative-to=. "$REPLY") |
@@ -24,7 +20,7 @@ EOF | |||
24 | 20 | ||
25 | POST_TITLES=() | 21 | POST_TITLES=() |
26 | for x in "${POSTS[@]}"; do | 22 | for 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") |
29 | done | 25 | done |
30 | 26 | ||