ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/configure_dbsdls
(Generate patch)

Comparing COMP/CRAB/python/configure_dbsdls (file contents):
Revision 1.1 by afanfani, Sun Jan 29 01:47:51 2006 UTC vs.
Revision 1.2 by afanfani, Sun Mar 12 00:59:22 2006 UTC

# Line 4 | Line 4
4   #
5   # Installation script for Crab
6   #
7 < # 02-Nov-2005
7 > # 09-March-2006
8  
9   # Subdir structure:
10   # top/
11   #     Boss/...
12 < #     Crab/python
13 < #     Crab/script
14 < #     DBSAPI/..
15 < #     DLSAPI/..
16 <
12 > #     python/...
13 > #     script/...
14 > #     DBSAPI
15 > #     DLSAPI
16 > #
17   TopDir=`\pwd`
18  
19   #############################################
20   ######## BOSS CONFIGURATION #################
21   #############################################
22 < BOSSVER=3_6_1
22 > BOSSVER=3_6_3
23   BACKEND=SQLite
24  
25   function configureBoss {
# Line 67 | Line 67 | cd $TopDir
67   cat > crab.sh <<EOF
68   #! /bin/sh
69   # CRAB related Stuff
70 < export CRABDIR=$TopDir/Crab
70 > export CRABDIR=$TopDir
71   export CRABSCRIPT=\${CRABDIR}
72  
73   CRABPATH=\${CRABDIR}/python
# Line 92 | Line 92 | source $BOSSDIR/bossenv.sh
92   # check whether central boss db is configured
93  
94   # check if *clad files exist
95 < if [ ! -e ~/BossConfig.clad ]; then
96 <  echo "User-boss DB not installed: run configureBoss"
97 < fi
98 < if [ ! -e ~/SQLiteConfig.clad ]; then
99 <  echo "User-boss DB not installed: run configureBoss"
100 < fi
101 < if [ ! -e ~/MySQLRTConfig.clad ]; then
102 <  echo "User-boss DB not installed: run configureBoss"
95 >
96 > if [ ! -e ~/.bossrc/BossConfig.clad ]; then
97 >  if [ -e ~/BossConfig.clad ]; then
98 >    cp  ~/BossConfig.clad ~/.bossrc/BossConfig.clad
99 >  else
100 >    echo "User-boss DB not installed: run configureBoss"
101 >  fi
102 > fi
103 > if [ ! -e ~/.bossrc/SQLiteConfig.clad ]; then
104 >  if [ -e ~/SQLiteConfig.clad ]; then
105 >    cp ~/SQLiteConfig.clad ~/.bossrc/SQLiteConfig.clad
106 >  else
107 >    echo "User-boss DB not installed: run configureBoss"
108 >  fi
109 > fi
110 > if [ ! -e ~/.bossrc/MySQLRTConfig.clad ]; then
111 >  if [ -e ~/MySQLRTConfig.clad ]; then
112 >    cp  ~/MySQLRTConfig.clad  ~/.bossrc/MySQLRTConfig.clad
113 >  else
114 >    echo "User-boss DB not installed: run configureBoss"
115 >  fi
116   fi
117   # now check a boss command to see if boss DB is up and running
118 <
106 < boss clientID 1>&2 | grep -c "not correctly configured"
107 < < if [ \$? -ne 0 ]; then
118 > if [ \`boss clientID 1>/dev/null | grep -c "not correctly configured"\` -ne 0 ]; then
119    echo "User-boss DB not installed: run configureBoss"
120   fi
121   EOF
# Line 113 | Line 124 | EOF
124   cat > crab.csh <<EOF
125   #! /bin/csh
126   # CRAB related Stuff
127 < setenv CRABDIR $TopDir/Crab
127 > setenv CRABDIR $TopDir
128   setenv CRABSCRIPT \${CRABDIR}
129  
130   set CRABPATH=\${CRABDIR}/python
# Line 138 | Line 149 | source $BOSSDIR/bossenv.csh
149   # check whether central boss db is configured
150  
151   # check if *clad files exist
152 < if ( ! -e ~/BossConfig.clad ) then
153 <  echo "User-boss DB not installed: run configureBoss"
154 <  exit 1
152 > if ( ! -e ~/.bossrc/BossConfig.clad ) then
153 >  if ( -e ~/BossConfig.clad ) then
154 >    cp ~/BossConfig.clad ~/.bossrc/BossConfig.clad
155 >  else
156 >    echo "User-boss DB not installed: run configureBoss"
157 >    exit 1
158 >  endif
159   endif
160 < if ( ! -e ~/SQLiteConfig.clad ) then
161 <  echo "User-boss DB not installed: run configureBoss"
162 <  exit 1
160 > if ( ! -e ~/.bossrc/SQLiteConfig.clad ) then
161 >  if ( -e ~/SQLiteConfig.clad ) then
162 >    cp ~/SQLiteConfig.clad ~/.bossrc/SQLiteConfig.clad
163 >  else
164 >    echo "User-boss DB not installed: run configureBoss"
165 >    exit 1
166 >  endif
167   endif
168 < if ( ! -e ~/MySQLRTConfig.clad ) then
169 <  echo "User-boss DB not installed: run configureBoss"
170 <  exit 1
168 > if ( ! -e ~/.bossrc/MySQLRTConfig.clad ) then
169 >  if ( -e ~/MySQLRTConfig.clad ) then
170 >    cp ~/MySQLRTConfig.clad  ~/.bossrc/MySQLRTConfig.clad
171 >  else
172 >    echo "User-boss DB not installed: run configureBoss"
173 >    exit 1
174 >  endif
175   endif
176   # now check a boss command to see if boss DB is up and running
177   if ( \`boss clientID |& grep -c "not correctly configured"\` ) then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines