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
Rename generated meta files, test for them.
[redo-blog]
/
processor
/
index.html.do
diff --git
a/processor/index.html.do
b/processor/index.html.do
index 8bf675139c2bad3907e924c726b5a3084dd7ed2c..2b71ffb486cd624f39c3eb12e9dcaaeb3c93e69c 100644
(file)
--- a/
processor/index.html.do
+++ b/
processor/index.html.do
@@
-2,7
+2,8
@@
# Pull in global dependencies.
. ./helpers.sh
# Pull in global dependencies.
. ./helpers.sh
-redo-ifchange title
+title_file=title.meta
+redo-ifchange "$title_file"
# Write index head.
cat << EOF
# Write index head.
cat << EOF
@@
-10,7
+11,7
@@
cat << EOF
<html>
<head>
EOF
<html>
<head>
EOF
-blog_title=`read_and_escape_file
title
| head -1`
+blog_title=`read_and_escape_file
"$title_file"
| head -1`
printf "<title>%s</title>\n</head>\n<body>\n" "$blog_title"
printf "<h1>%s</h1>\n<ul>\n" "$blog_title"
printf "<title>%s</title>\n</head>\n<body>\n" "$blog_title"
printf "<h1>%s</h1>\n<ul>\n" "$blog_title"