X-Git-Url: https://plomlompom.com/repos/?p=redo-blog;a=blobdiff_plain;f=processor%2Fall.do;h=e448a44fac615a12ae7f94581d6b2965805cc041;hp=3c3a021ff18e97819f49adad5ab0f96b8410dd41;hb=ccaca5ce4be7fc7c67c62ac5bbbe3bdb06ddb6ad;hpb=c67421732e148c768cc83395c143480b2b9b6106 diff --git a/processor/all.do b/processor/all.do index 3c3a021..e448a44 100644 --- a/processor/all.do +++ b/processor/all.do @@ -1,7 +1,7 @@ #!/bin/sh # Set up directories. -metadata_dir=.meta +metadata_dir=metadata public_dir=public cur_dir=$(pwd) mkdir -p "$public_dir" @@ -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