You are not logged in Log in Join
You are here: Home » Members » 4AM Productions (Evan Simpson) » Simple script to package up Products

Log in



Folder icon Simple script to package up Products

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.

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:


 Title   Type   Size   Modified   Status 
 default Edit object Software Release   1999-12-16 published