glastpack, by Alex Schlessinger


Summary:

 create dirname
 help command
 build package version
 [-H] rco package version
 soap port
 run package executable
 add /path/to/area
 rebuild package version
 remove /path/to/area
 co package version
 login
 logout
Result of "perldoc":
NAME
    glastpack.pl - glast package management

    $GLASTROOT/ground/scripts/glastpack.pl

SYNOPSIS
    Glastpack provides a facility for a developer to use "work areas" for
    development.

    It provides a functional recursive checkout. CMT does not look at the
    packages present in the CMTPATH before checkout, glastpack.pl does and
    will only retrieve packages it needs.

    Any wildcards in the requirements file for a package are resolved to the
    latest matching tag.

USAGE
    $ glastpack.pl create dirname creates the working area "dirname"

    $ cd dirname; glastpack.pl login login to the working area

    $ glastpack.pl add /path/to/packages add path to CMTPATH

    $ glastpack.pl remove /path/to/packages remove path from CMTPATH

    $ glastpack.pl rco package version recursive checkout of package,
    version

    $ glastpack.pl co package version checkout package, version

    $ glastpack.pl build package version compile package, version

    $ glastpack.pl run package executable configure and run the
    executable from package, version

CMTPATH
    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 v9r0p5
     # 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 v1r0
     # compile Gleam

     $ glastpack.pl run G4Generator v3r4 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.

06/01/2010