3 # Pull in dependencies.
5 src_file=$(get_source_file "$1")
6 intermediate_file="${1%.index_snippet}.intermediate"
7 redo-ifchange "$intermediate_file"
8 html_file="${src_file%.*}.html"
9 redo-ifchange "$html_file"
11 # Get variables, write entry.
12 title_html=`cat "$intermediate_file" | head -1`
13 html_file_escaped=`escape_url "${html_file#*/}"`
14 printf "<li><a href=\"%s\" />%s</a></li>\n" "$html_file_escaped" "$title_html"