registerApplicationBundle (v1)
=============================

What is it?
-----------
registerApplicationBundle is a tool to register/unregister a bundle into an application, provided that this application allows it.
This application can be used as a post-install/post-delete application when installing a package.


Description
-----------
For example, ProjectBuilder allows you to load bundles at startup. You can set them within ProjectBuilder, or use the command line.
If you create a bundle for ProjectBuilder and provide a package (.pkg) for it, it would be nice that the installation also registers your newly installed bundle into ProjectBuilder defaults. That's what this tool does.

Usage: registerApplicationBundle [options] domainName domainRep pathToBundle ...
Options:
  -u    Unregister bundle(s)
  -f    On registering, if there is already a bundle with same name,
        new one replaces it, even if path is different.
		
Using option -f (on registering only) registerApplicationBundle will check if there is already a bundle with the same name; it does not compare the full path name. If there is one, it will unregister its path and register the path of the newly installed bundle; this way, you can force user to register the new bundle. By default, registerApplicationBundle checks for the full path name.

If you have a package you can specify post-install and post-delete scripts to be executed.
For example, for a ProjectBuilder bundle, create the following two script files:

	#!/bin/sh
	# MyPackage.post_install
	$1/registerApplicationBundle -f ProjectBuilder BundlesLoadedAtLaunch $2/MyBundle.bundle

and

	#!/bin/sh
	# MyPackage.post_delete
	$1/registerApplicationBundle -u ProjectBuilder BundlesLoadedAtLaunch $2/MyBundle.bundle
		
Then, in the package definition file specify the two scripts as post-install and post-delete scripts, and include the tool in the package (but not for installation).


Requirements
------------
registerApplicationBundle has been compiled and tested on MacOS X Server. It may also work on OpenStep 4.x: you will need to modify the PB.project and Makefiles in order to recompile it.


Contact Information
-------------------
It would be appreciated if you send any changes you make in PBOpener source code to us so that others may benefit from your changes.
mailto:opensource@sente.ch.


License
-------
registerApplicationBundle (v1), Copyright (C) 2000 Sen:te Ltd. All rights reserved.
Sen:te makes this software available for anyone to use, under the terms of our Open Source License, inspired by the MiscKit License.
http://www.sente.ch/software/OpenSourceLicense.html


Change History
--------------
v1, Feb 22, 2000
	Original release
