home · contact · privacy
Simplify HTML file link path determination.
[redo-blog] / processor / metadata / default.feed_snippet.do
index b09eaa056e62537b10df8f8cd987554943b1e151..3321ac4071f684123499a6fcc3174fec2a87439f 100644 (file)
@@ -9,8 +9,7 @@ intermediate_file="${1%.feed_snippet}.intermediate"
 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"`