This is a bash shell script for making a Product distribution tarball. It tries to make a cleaner tarball by omitting *.pyc files and the lib, python and Product directories.
lib
python
Product
It has only been tested under a RedHat-based Linux.
Place it in your Zope directory, and run it as:
./packProduct packagename
Your Package is presumed to live in lib/python/Products/packagename
If a file lib/python/Products/packagename.package exists, its contents will be used as the name of the tarball, otherwise packagename.tgz will be used.
For example, I have a SiteAccess.package file in my Products directory containing the line:
/home/evan/tarballs/Zope/SiteAccess-0.2.0-nonbin.tgz