#!/bin/sh
# Create a zip file containing the Mathomatic source distribution with no object files.
# The current directory must be the root of the Mathomatic source tree for this to work.

if [ ! -f "VERSION" ]
then
	echo Executed from improper directory.
	exit 1
fi

rm -f ~/am.zip */*.o */*.pyc
echo Mathomatic development source code version `cat VERSION`+ \
| zip -rqz ~/am.zip *.c *.h makefile* update compile* *.txt VERSION AUTHORS COPYING mathomatic.* zipsrc doc primes tests lib factorial m4 misc icons \
&& echo ~/am.zip created.
