home · contact · privacy
Fix faulty comments.
[redo-blog] / processor / index.html.do
index 8bf675139c2bad3907e924c726b5a3084dd7ed2c..1bd4dd13115f32556b77e065b223e8e488eb584e 100644 (file)
@@ -2,7 +2,8 @@
 
 # Pull in global dependencies.
 . ./helpers.sh
-redo-ifchange title
+title_file=title.meta
+redo-ifchange "$title_file"
 
 # Write index head.
 cat << EOF
@@ -10,12 +11,13 @@ cat << 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"
 
-# Iterate through entries sorted by lastmod of their source files, write entry
-# list. 
+# Iterate through entries sorted by lastmod of their source files, write entry.
+# FIXME: This ls parsing is a bad way to loop through the sorted files. Besides,
+# $'\0' is a bashism.
 first_run=0
 files=`ls -1t *.rst *.md | tr '\n' $'\0'`
 oldIFS="$IFS"