1#!/bin/sh 2cat /dev/null > integration/status.txt 3echo "read(\"integration/benchmark.mpl\"):" > integration/test.mpl 4echo "global filename:" >> integration/test.mpl 5echo "filename:= \"$2\":" >> integration/test.mpl 6echo "draw_table$1():" >> integration/test.mpl 7maple -q integration/test.mpl 8#rm -f integration/test.mpl 9#maple -q integration/benchmark.mpl #| tee 2>&1 | tee -a integration/status.txt | egrep "total errors" | tr -d '"' | awk {'exit $1'}