home
·
contact
·
privacy
projects
/
redo-blog
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix tests.
[redo-blog]
/
processor
/
all.do
diff --git
a/processor/all.do
b/processor/all.do
index 3c3a021ff18e97819f49adad5ab0f96b8410dd41..3d09097c48be7a4f2b511c404797dc9ccc1c4614 100644
(file)
--- a/
processor/all.do
+++ b/
processor/all.do
@@
-1,7
+1,7
@@
#!/bin/sh
# Set up directories.
#!/bin/sh
# Set up directories.
-metadata_dir=
.me
ta
+metadata_dir=
metada
ta
public_dir=public
cur_dir=$(pwd)
mkdir -p "$public_dir"
public_dir=public
cur_dir=$(pwd)
mkdir -p "$public_dir"
@@
-15,11
+15,11
@@
for file in "$metadata_dir"/*.intermediate; do
rm "$file"
fi
done
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" &&
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
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"
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
redo-ifchange "$html_file"
ln -sf "$cur_dir/$html_file" "${public_dir}/"
fi