Changeset 27557 for other-projects
- Timestamp:
- 2013-06-05T21:38:27+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/nightly-tasks/diffcol/trunk/task
r27542 r27557 8 8 export UPLOAD_DIR=$TASK_HOME/diffcol-reports 9 9 export [email protected] 10 11 # control if an existing compiled greenstone is used 12 # or, if one should be checked out, which revision to checkout from svn 13 SVN_OPT_R="-r head" 14 #export GSDLHOME= 15 #export GSDL3SRCHOME= 10 16 11 17 #check key environment vars are set … … 47 53 xmlout=$DATA_DIR'/full-report-'$dateid'.xml' 48 54 55 # the toplevel folder of the greenstone installation being used 56 greenstone_home= 57 # gsdl is the checkout folder and can be greenstone2 or greenstone3 58 gsdl=greenstone2 59 60 61 # Check if using existing compiled-up greenstone installation 62 # and set the greenstone_home location accordingly 63 if [ "x$GSDL3SRCHOME" != "x" -o "x$GSDLHOME" != "x" ]; then 64 echo "Found existing Greenstone home, will use that instead" 65 greenstone_home=$GSDLHOME 66 else 67 greenstone_home="$DATA_DIR/$gsdl"; 68 fi 69 70 71 49 72 function setup_greenstone() { 50 73 … … 62 85 cd $DATA_DIR 63 86 87 88 # use existing compiled-up greenstone installation 89 if [ "x$GSDL3SRCHOME" != "x" -o "x$GSDLHOME" != "x" ]; then 90 echo "Found existing Greenstone home, will use that instead" 91 return; 92 fi 93 94 # Else checkout a GS from svn into DATA_DIR 95 96 64 97 #svn checkout of main gsdl directory 65 echo "checkout gsdl:"66 svn co http://svn.greenstone.org/main/trunk/greenstone2gsdl67 echo "done" 68 69 cd $DATA_DIR/ gsdl98 echo "checkout $gsdl:" 99 svn co $SVN_OPT_REV http://svn.greenstone.org/main/trunk/greenstone2 $gsdl 100 echo "done" 101 102 cd $DATA_DIR/$gsdl 70 103 71 104 … … 81 114 gl_suffix=$os'-intel'; 82 115 else 83 # linux, wor l out the bit arch116 # linux, work out the bit architecture 84 117 arch=`uname -m` 85 118 if [[ "$arch" == *"64"* ]]; then … … 93 126 94 127 #svn checkout gnome-lib for this linux/darwin 95 cd $DATA_DIR/ gsdl/ext128 cd $DATA_DIR/$gsdl/ext 96 129 97 130 # svn export http://svn.greenstone.org/gs2-extensions/gnome-lib/trunk/gnome-lib-minimal-linux-x64.tar.gz gl.tar.gz … … 105 138 106 139 #configure 107 echo "configure gsdl: "140 echo "configure $gsdl: " 108 141 echo "<configure>" >> $xmlout 109 142 ./configure 2>> $DATA_DIR/compilation-errors … … 112 145 113 146 #make 114 echo "make gsdl: "147 echo "make $gsdl: " 115 148 echo "<make>" >> $xmlout 116 149 make 2>> $DATA_DIR/compilation-errors … … 119 152 120 153 #make install 121 echo "make install gsdl: "154 echo "make install $gsdl: " 122 155 echo "<make-install>" >> $xmlout 123 156 make install $DATA_DIR/compilation-errors … … 125 158 echo "done" 126 159 127 160 # set the path to the greenstone_home variable 161 greenstone_home=$DATA_DIR/$gsdl 128 162 } 129 163 … … 134 168 echo '<test time="'$dateid'" id="'$dateid'">' > $xmlout 135 169 136 cd $DATA_DIR/gsdl 170 # go to whichever greenstone_home we're using 171 cd $greenstone_home 137 172 138 173 #get svn info … … 144 179 145 180 #set up the gsdl environment with the setup.bash script 146 echo "setting up gsdl environment: "181 echo "setting up $gsdl environment: " 147 182 export GSDLHOME= 148 183 source setup.bash … … 154 189 155 190 #copy the model collections to the collect folder to be rebuilt 156 echo -n "installing test collections and model collections to new gsdl installation... "191 echo -n "installing test collections and model collections to new $gsdl installation... " 157 192 158 193 #clean up … … 209 244 cd $TASK_HOME/diffcol 210 245 ./diffcol.pl -output xml -verbosity 10 $collection >> $xmlout 211 cd $ DATA_DIR/gsdl246 cd $greenstone_home 212 247 echo "done" 213 248 … … 256 291 echo "result: "$result 257 292 if [ "$result" != "yes" ]; then 258 echo 'gsdlregression test for '$dateid' failed' | mutt -a $DATA_DIR'/report-'$dateid'.html' -s 'Regression Test Failed' -- $MONITOR_EMAIL293 echo $gsdl' regression test for '$dateid' failed' | mutt -a $DATA_DIR'/report-'$dateid'.html' -s 'Regression Test Failed' -- $MONITOR_EMAIL 259 294 fi 260 295 echo "Sent mail with report attached." … … 274 309 275 310 } 311 276 312 277 313 #parse arguments
Note:
See TracChangeset
for help on using the changeset viewer.