#!/bin/sh # Pull in global dependencies. . ./helpers.sh intermediate_file="${1%.html}.intermediate" title_file=title.meta redo-ifchange "$title_file" redo-ifchange "$intermediate_file" # Build entry data. blog_title=`read_and_escape_file "$title_file" | head -1` title_html=`cat "$intermediate_file" | head -1` title_plaintext=`echo "$title_html" | html2text` title_plaintext_escaped=`escape_html "$title_plaintext"` body=`cat "$intermediate_file" | sed 1d` # Write first part of entry head. cat << EOF
EOF # Write remaining entry head and body. printf "