diff options
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 | ||