From 316dfb918c586fa1743b9389729177375e883d9a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 29 Mar 2015 01:36:29 +0100 Subject: Move from cabal sandbox to nix environment --- lists/default.md.do | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lists') 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 @@ #!/usr/bin/env bash redo-ifchange "$2/title" -extracttitle() { - 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-' -} - POSTS=() while read -r -d $'\0'; do post=$(realpath --relative-to=. "$REPLY") @@ -24,7 +20,7 @@ EOF POST_TITLES=() for x in "${POSTS[@]}"; do - title=$(pandoc -t json "$x" | extracttitle) + title=$(pandoc -t json "$x" | ../build/extract-title.hs) POST_TITLES+=("$title") done -- cgit v1.2.3