From f7d4ba2023ab18b9d7c5fad85cbb863c61e6272c Mon Sep 17 00:00:00 2001 From: Viktor Kleen Date: Fri, 2 Jan 2015 09:29:04 +0000 Subject: initial commit --- index.md.do | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 index.md.do (limited to 'index.md.do') diff --git a/index.md.do b/index.md.do new file mode 100644 index 0000000..02c10af --- /dev/null +++ b/index.md.do @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +LISTS=() +while read -r -d $'\0'; do + LISTS+=("$REPLY") +done < <(find lists -maxdepth 1 -mindepth 1 -type d -not -name '.*' -print0 | sort -z) + +for x in "${LISTS[@]}"; do + printf "%s.html\0" "$x" +done | xargs -r -0 redo-ifchange + +cat <