Using a Bundle Definition Template

gpt-bundle allows you to specify a template definition that can be used to generate multiple bundles that have elements in common. Any bundle definition (such as the one generated in the previous section) can serve as a template. A completely generic template can be generated with the command gpt-bundle -template. The resulting template is in a file called BundleTemplateXML_FILE.xml. The following exercise shows how to use a template to generate different bundles:

  1. Edit the bundle definition file. You can see the edited version here. Default data has been filled in for the ContactInfo as well as other bundle header data. In addition the globus_common-gcc32-pgm package is included in every bundle that is built with this template.

  2. Run gpt-bundle -bn=newfee -bv=3.4 -bl=MEB-2.5b1 -bs=Beta -xml=template.xml globus_proxy_utils the resulting bundle will be named newfee-MEB-2.5b1-i686-pc-linux-gnu-bin.tar.gz.

  3. Unpack this bundle and look at the bundle definition file named newfee-MEB-2.5b1.gpt-bundle.xml. It should look similar to this. As can be seen, elements such as the bundle version, the version label, and the version stability have been replaced by the command line inputs. Other elements contain the values of the template.