Inside your working directory you will find a file named "CMTPATH". This file has the syntax of the CMT .cmtrc file, and must be edited to reflect your environment. Add paths to other working areas and packages here.
Note: The first entry in the CMTPATH is automatically set as the path to the work area you have created. You can append as many other paths as you like, but this path must remain first.
EXAMPLE 1: Check out GaudiSys v9r0p5 and Gleam v1r0 into seperate work directories and then compile Gleam against GaudiSys.
$ mkdir /tmp/GLAST;cd /tmp/GLAST
$ glastpack.pl create GaudiSys_v9r0p5
# create Gaudi work area
$ cd GaudiSys_v9r0p5; glastpack.pl login
# "login" to GaudiSYS
$ glastpack.pl rco GaudiSys v9r0p5
# check out GaudiSys v9r0p5
$ glastpack.pl build GaudiSys
# build GaudiSys
$ cd /tmp/GLAST
$ glastpack.pl create Gleam_v1r0
# create Gleam work area
$ cd Gleam_v1r0; glastpack.pl login
$ glastpack.pl add /tmp/GLAST/GaudiSys_v9r0p5
# add GaudiSys to CMTPATH
$ glastpack.pl rco Gleam v1r0
# check out Gleam against GaudiSys
$ glastpack.pl build Gleam
# compile Gleam
$ glastpack.pl run G4Generator G4Test.exe
# run G4Test
EXAMPLE 2: Check out the HEAD of Gleam against a prior installed Gleam and GaudiSys.
$ glastpack.pl create work
# create work dir
$ cd work; glastpack.pl login
# "login" to work
$ glastpack.pl add $GLASTROOT/ground/releases/GaudiSys_v9r0p4/
$ glastpack.pl add $GLASTROOT/ground/releases/Gleam_v0r7/
# add older GaudiSys and Gleam to CMTPATH
$ glastpack.pl rco Gleam HEAD
# check out the head of Gleam against CMTPATH
getting Gleam HEAD
6 more packages needed:
facilities v2r3
xmlGeoDbs v1r4
GlastEvent v7r0
G4Generator v3r3p2
GlastDigi v2r4
Recon v0r8p2
getting facilities v2r3
getting xmlGeoDbs v1r4
getting GlastEvent v7r0
getting G4Generator v3r3p2
getting GlastDigi v2
done.