X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=processor%2Fall.do;h=3d09097c48be7a4f2b511c404797dc9ccc1c4614;hb=832ddee1f328d75580c3bc39c48e4b000d2929d6;hp=5857254a2c72b56f801833bac0161861d81a15f4;hpb=b86576c5f61cff36c80c9e0efd9d77f50dac745b;p=redo-blog diff --git a/processor/all.do b/processor/all.do index 5857254..3d09097 100644 --- a/processor/all.do +++ b/processor/all.do @@ -15,11 +15,11 @@ for file in "$metadata_dir"/*.intermediate; do rm "$file" fi done -for file in "$metadata_dir"/*.uuid; do +for file in "$metadata_dir"/*.automatic_metadata; do basename=$(basename "$file") if test -f "$file" && - ! test -f "${basename%.uuid}.md" && - ! test -f "${basename%.uuid}.rst"; then + ! test -f "${basename%.automatic_metadata}.md" && + ! test -f "${basename%.automatic_metadata}.rst"; then rm "$file" fi done @@ -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