#!/bin/oksh BASE="${0%/*}/.." . "${BASE}/conf/default.conf" if test ! -d "${html_dir}"; then echo "no html output diretory found.. call setup first." exit 1 fi FILES="summary" for file in $FILES; do echo "Regenerating $file.html.." m4 -I "${templates_dir}" -P < "${templates_dir}/${file}.m4" > "${html_dir}/${file}.html" done