-# run Sage on the generated .sage files and see what happens.

+# this runs Sage on the generated .sage files to see if they work ok

+# this is basically the spkg-check file

-# In an ideal world, this could be automatically run as part of

-# doctesting, but for now this is about as good as we can do.

+ echo "Error running Sage on $1.sage!"

+ echo "No problem that spkg-check can detect running Sage on $1.sage."

-for F in example sagetexpackage

- if [ $(sage $F.sage 2>&1 | grep -c 'failed') -gt 0 ]

- echo "Error running Sage on $F.sage!"

- echo "No problem running Sage on $F.sage."

+latex example.tex > /dev/null

+latex sagetexpackage.dtx > /dev/null

+checkdotsage sagetexpackage

+# if we get here, we assume the .sage files are good, and exit successfully