/usr/share/doc/mathomatic/tests/demo is in mathomatic 16.0.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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
 |