From: Christian Heller Date: Thu, 22 Dec 2016 18:52:46 +0000 (+0100) Subject: Simplify all.do script. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/conditions?a=commitdiff_plain;h=ccaca5ce4be7fc7c67c62ac5bbbe3bdb06ddb6ad;p=redo-blog Simplify all.do script. --- diff --git a/processor/all.do b/processor/all.do index 5857254..e448a44 100644 --- a/processor/all.do +++ b/processor/all.do @@ -36,12 +36,7 @@ done for file in *.rst *.md; do if test -f "$file"; then redo-ifchange "${metadata_dir}/${file%.*}.intermediate" - fi -done -for file in "$metadata_dir"/*.intermediate; do - if test -f "$file"; then - basename=$(basename "$file") - html_file=${basename%.intermediate}.html + html_file=${file%.*}.html redo-ifchange "$html_file" ln -sf "$cur_dir/$html_file" "${public_dir}/" fi