ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/tar2.sh
Revision: 1.2
Committed: Fri Apr 28 12:01:53 2006 UTC (19 years ago) by slacapra
Content type: application/x-sh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
State: FILE REMOVED
Error occurred while calculating annotation data.
Log Message:
script for tar ball

File Contents

# Content
1 #!/bin/sh
2
3 ### $1 is the tag value CRAB_X_X_X ###
4 if [ $# -lt 1 ]; then
5 echo "Usage: `basename $0` <CRAB_X_Y_Z>"
6 exit 1
7 fi
8 tag=$1
9 boss_version=$2
10 echo "tag = $tag"
11
12 #CRABdir="${tag}_dbsdls"
13 CRABdir="$tag"
14 echo "CRABDIR = $CRABDIR"
15 CRABtag=$tag
16 DBSAPItag="HEAD"
17 DLSAPItag="DLS_V0_0_1"
18
19 CVSrepo=":pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories"
20 export CVSROOT=${CVSrepo}"/CMSSW"
21
22 configure_dbsdls=configure_dbsdls
23 ## download CRAB from CVS and cleanup the code a bit
24 #echo ">> downloading CRAB tag $CRABtag from CVS CRAB"
25 echo ">> downloading CRAB HEAD from CVS CRAB"
26 #cvs co -r $CRABtag -d $CRABdir CRAB
27 cvs co -d $CRABdir CRAB
28 cvs up -P BossScript
29 cd $CRABdir
30 rm -r CVS
31 rm -r python/CVS
32 rm python/crab.*sh
33 rm python/tar*
34 mv python/configure .
35 mv python/configureBoss .
36
37 #rm configure
38 #mv $configure_dbsdls configure
39 #less python/crab.cfg | sed -e "s?jobtype = orca?jobtype = orca_dbsdls?" > crab.cfg.tmp
40 #mv crab.cfg.tmp python/crab.cfg
41 #echo "--> configure crab.cfg to set by default the jobtype to orca_dbsdls"
42
43 ## download Boss
44 echo ">> downloading BOSS from http://boss.bo.infn.it/boss-v$2-bin.tar.gz "
45 mkdir Boss
46 cd Boss
47 wget http://boss.bo.infn.it/boss-v$2-bin.tar.gz
48 ## download DBS API
49 echo ">> downloading DBS API tag $DBSAPItag from CVS DBS/Clients/PythonAPI"
50 cd ..
51 cvs co -r ${DBSAPItag} -d DBSAPI COMP/DBS/Clients/PythonAPI
52 rm -r DBSAPI/CVS
53 # add this dir to the PYTHONPATH
54 ## download DLS CLI
55 echo ">> downloading DLS CLI tag ${DLSAPItag} from CVS DLS/Client/SimpleClient"
56 cvs co -r ${DLSAPItag} -d DLSAPI COMP/DLS/Client/SimpleClient
57 rm -r DLSAPI/CVS
58 # add this dir to PATH
59
60 cd ..
61 tar zcvf $CRABdir.tgz $CRABdir
62 echo ""
63 echo " tarball prepared : $CRABdir.tgz "