Debian Codegraph @

tests/demo_sub

raw
1 #!/bin/sh
2 # Called and used only by the demo shell script.
3
4 set -e
5 set -u
6
7 echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'
8 echo '<html>'
9 echo
10 echo '<head>'
11 echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">'
12 echo "<title>Actual timed Mathomatic output from the $@ script</title>"
13 echo '<meta name="description" content="Actual output from running Mathomatic in color HTML mode with the' $@ 'script as input. Includes total execution time at the end.">'
14 echo '<meta name="keywords" content="Mathomatic example scripts">'
15 echo '<meta name="distribution" content="global">'
16 echo '<meta name="rating" content="general">'
17
18 echo '<link rel="home" href="http://www.mathomatic.org">'
19 echo '</head>'
20 echo
21 echo '<body bgcolor="white" text="black" link="blue" alink="red" vlink="purple">'
22
23 echo "<h2>Actual timed Mathomatic output from the $@ script</h2>"
24
25 /usr/bin/time -p mathomatic -dxr "$@" </dev/null 2>&1
26
27 echo 'seconds total execution time of this script.'
28 echo '<hr>'
29 echo '<a style="float: left;" href="http://www.mathomatic.org/math/adv.html" title="Visit the examples page">More examples</a>'
30 echo '<a style="float: right;" href="http://www.mathomatic.org" title="Visit the main page">www.mathomatic.org</a>'
31
32 echo '</body>'
33 echo '</html>'