Debian Codegraph @

tests/demo

raw
1 #!/bin/sh
2 # Create complete color html files out of Mathomatic input (*.in) files.
3 # The result is suitable for display on a website.
4 # Usage: ./demo script_base_filenames
5
6 RUN_SUB="${0}_sub"
7
8 for file in "$@"
9 do
10 if [ ! -f "$file.in" ]
11 then
12 echo $file.in not found.
13 exit 1
14 fi
15 echo Doing "$file.in" with "$RUN_SUB" and tidy...
16 "$RUN_SUB" "$file" | tidy -q -i -wrap 1000 >$file.html
17 done