File: demo

package info (click to toggle)
mathomatic 16.0.5-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,192 kB
  • sloc: ansic: 22,029; makefile: 340; sh: 319; python: 96; awk: 39
file content (17 lines) | stat: -rwxr-xr-x 395 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# Create complete color html files out of Mathomatic input (*.in) files.
# The result is suitable for display on a website.
# Usage: ./demo script_base_filenames

RUN_SUB="${0}_sub"

for file in "$@"
do
	if [ ! -f "$file.in" ]
	then
		echo $file.in not found.
		exit 1
	fi
	echo Doing "$file.in" with "$RUN_SUB" and tidy...
	"$RUN_SUB" "$file" | tidy -q -i -wrap 1000 >$file.html
done