This page is obsolete. Please report the refering page

How to make a library of your package

( Document last updated 3 September 2004 by Florence Ranjard )

1. Configure CMT

Remember the following rules:

2. Get the head revision of your package from CVS

       > cd cmtuser
       > getpack OT/OTDAQ v2r0 head
      

3.  build a library

      > cd OT/OTDAQ/v2r0/cmt
      > gmake

The library is avalaible in OT/OTDAQ/v2r0/rh73_gcc323/libOTDAQ.so

4. build an executable using this new library

       > cd $HOME/cmtuser/Digi/Boole/v6r1/cmt
       > cmt show uses
               to check that OTDAQ is taken from your working area
       > gmake clean all
               to remove previous executable and create a new one

5a. go back to the official release library :
          move your version to another version number

        > cd $HOME/cmtuser/OT/OTDAQ
        >  mv v2r0 myv2r0
             CMT will not find OTDAQ in your area, it will use the release area
        > cd $HOME/cmtuser/Digi/Boole/v6r1/cmt
        > cmt show uses
           ---
           /afs/cern.ch/lhcb/software/releases/BOOLE/BOOLE_v6r1/OT/OTDAQ
           ---
        > rm *.make
        > gmake
       

6a. go back to your private version : move your version back

        > cd $HOME/cmtuser/OT/OTDAQ
        >  mv myv2r0 v2r0
        > cd $HOME/cmtuser
        > cmt show uses
           ---
           $HOME/cmtuser/OT/OTDAQ
           ---

an alternative to (5a,6a) is to change CMTPATH

5b. go back to the official release library: remove CMTPATH

    
      > unsetenv CMTPATH
      > cd $HOME/cmtuser/Digi/Boole/v6r1/cmt
      > cmt show path
         $LHCBRELEASES: etc...
      > cmt show uses
          -- all packages will be taken from the release area
           /afs/cern.ch/lhcb/software/releases/BOOLE/BOOLE_v6r1/OT/OTDAQ

 

6b. go back to your private version: reset CMTPATH

      > setenv CMTPATH $HOME/cmtuser
      > cd $HOME/cmtuser/Digi/Boole/v6r1/cmt
      > cmt show path
          $HOME/cmtuser: $LHCBRELEASES: etc...
      > cmt show uses
         ----
           /afs/cern.ch/user/r/ranjard/cmtuser/OT/OTDAQ
         ----