Next: , Previous: Introduction, Up: Top



3 Making Distribution Tar Files

Making a distribution tar file first requires making a input file called a Product Specification File or PSF for short. It directs swpackage on what files to package, the package structure, and what control directory names to use. It also can contain meta-data (i.e. attributes) that are transferred into the package meta-data file named INDEX.

Here are examples that use a internally generated PSF to get started quickly, however, it is recommended that you provide your own PSF according to guidelines below.

Note that this will erase and replace a file named catalog which is the name of the ISO/IEC 15068-2 meta-data directory.

     cd somepackage-1.0
     swign -u "Your GPG Name" @- | tar tvf -

In this example swign generated a PSF since one was not supplied. Here is what it used.

     swign --show-psf
     distribution
     dfiles dfiles
     
     product
     title somepackage version 1.0
     description Source package for somepackage version 1.0
     tag somepackage
     revision 1.0
     control_directory ""
     fileset
     tag somepackage-sources
     control_directory ""
     file_permissions -o jhl  -g jhl
     directory .
     file *
     exclude catalog

If you already have a PSF named PSF, here's how to use it with swign:

     cd somepackage-1.0
     swign -s PSF -u "Your GPG Name" @- | tar tvf -

The same package can be created with swpackage, however, it requires specifying more options and the archive is written by swpackage instead of tar, Here's how:

     cd somepackage-1.0
     swpackage -s PSF -gpg-name "Your GPG Name" \
     	--dir=somepackage-0.1 --sign --files @- |
     tar tvf -