#! /bin/sh ### ### $Header: /home/gene/library/website/docsrc/wgc/wgcperf/RCS/make-report,v 395.1 2008/04/20 17:25:48 gene Exp $ ### ### Run all the demo????[am] programs, printing a report in ### LaTeX table. The table shows name & run-time for each. ### echo % `date` >raw.tex echo % `date` >rate.tex printf '\n\\begin{tabular}{|r|r|r|r|l|} \\hline' >>raw.tex printf '\n{\\bf manual time}&{\\bf automatic time}&' >>raw.tex printf '{\\bf iterations}&{\\bf program}&{\\bf comment} \\\\ \hline' >>raw.tex printf '\n\\begin{tabular}{|r|r|r|r|l|} \\hline' >>rate.tex printf '\n{\\bf manual rate}&{\\bf automatic rate}' >>rate.tex printf '&{\\bf program}&{\\bf comment} \\\\ \hline' >>rate.tex for F in `ls demo???? |sort` do echo $F $F done printf '\n\\end{tabular}' >>raw.tex printf '\n' >>raw.tex printf '\n\\end{tabular}' >>rate.tex printf '\n' >>rate.tex cat raw.tex rate.tex ### --- end of file ---