Build a distributable ups

These instructions are strictly archival.

Note that <product-dir> is the fully qualified path to your external packages directory.

1. Create a new directory for the external products

mkdir <product-dir>

2. Now go to that directory, get and unwind our ups/upd bootstrap script. Note that since upd is based on perl, you only need to build ups.

cd <product-dir>
curl -O
tar xzf ups-upd-bootstrap-noarch.tar.gz
cd ups/v4_8_2

3. Verify that the build was successful by setting up your new products area

source <product-dir>/setup
ups list -a [-z <product-dir>]
ups flavor

4. "ups list -a" should show just upd and ups at this point. However, if you are working on a machine with another ups database, your $PRODUCTS may list that database as well. If this is the case, use "ups list -a -z <product-dir>" to look at just your database.

5. Depending on your preferences, you may wish to set PRODUCTS so that only this new database is used:

bash: export PRODUCTS=<product-dir>
tcsh: setenv PRODUCTS <product-dir>

6. "ups flavor" returns the full ups "flavor" of this machine.

7. This is just the basic infrastructure you need before installing the remaining products.

8. If you cannot build ups on your machine, you will still be able to build the products, but you will need to write shell scripts to define the various environment variables established by a ups setup command. At this time, we do not provide support for this.