redo-ifchange "$intermediate_file"
# Get variables, write entry.
-html_file=`escape_url "${src_file%.*}.html"`
-html_file=${html_file#*/}
+html_file=$(escape_url "${1%.feed_snippet}.html")
lastmod=`stat -c%y "$src_file"`
lastmod_rfc3339=`date -u "+%Y-%m-%dT%TZ" -d "$lastmod"`
published=`stat -c%y "$uuid_file"`
redo-ifchange "$html_file"
# Get variables, write entry.
-title_html=`cat "$intermediate_file" | head -1`
-html_file_escaped=`escape_url "${html_file#*/}"`
+title_html=$(cat "$intermediate_file" | head -1)
+html_file_escaped=$(escape_url "${1%.index_snippet}.html")
printf "<li><a href=\"%s\" />%s</a></li>\n" "$html_file_escaped" "$title_html"