Changeset 27524

Show
Ignore:
Timestamp:
31.05.2013 19:35:58 (6 years ago)
Author:
ak19
Message:

Haven't run diffcol yet, but making the basic changes necessary to get the task file up to date.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/nightly-tasks/diffcol/trunk/task

    r21711 r27524  
    11#!/bin/bash 
     2 
     3export DATA_DIR=$TASK_HOME/diffcol-data 
     4export UPLOAD_DIR=$TASK_HOME/diffcol-reports 
     5export MONITOR_EMAIL=anupama@waikato.ac.nz 
    26 
    37#check key environment vars are set 
     
    5660    #svn checkout of main gsdl directory 
    5761    echo "checkout gsdl:" 
    58     svn co http://svn.greenstone.org/gsdl/trunk gsdl 
     62    svn co http://svn.greenstone.org/main/trunk/greenstone2 gsdl 
    5963    echo "done" 
    6064 
    6165    cd $DATA_DIR/gsdl 
    6266 
    63     #svn checkout of indexers 
    64     echo "checkout indexers: " 
    65     svn co http://svn.greenstone.org/indexers/trunk indexers 
    66     echo "done" 
     67 
     68    # since this is a bash script, we're on linux/darwin, need gnome-lib 
     69    # for the correct architecture. Assume all darwin is intel, not ppc 
     70    echo "setting up gnome-lib-minimal for compilation" 
     71 
     72# http://stackoverflow.com/questions/394230/detect-the-os-from-a-bash-script 
     73    os='linux'; 
     74    gl_suffix=$os; 
     75    if [[ "$OSTYPE" == "darwin"* ]]; then 
     76        os='darwin'; 
     77        gl_suffix=$os'-intel'; 
     78    else 
     79        # linux, worl out the bit arch 
     80        arch=`uname -m` 
     81        if [[ "$arch" == *"64"* ]]; then 
     82        arch='64'; 
     83        gl_suffix=$gl_suffix'-x64'; 
     84        else 
     85        arch='32'; 
     86        fi 
     87    fi 
     88 
     89 
     90    #svn checkout gnome-lib for this linux/darwin 
     91    cd $DATA_DIR/gsdl/ext 
     92 
     93#   svn export http://svn.greenstone.org/gs2-extensions/gnome-lib/trunk/gnome-lib-minimal-linux-x64.tar.gz gl.tar.gz 
     94    svn export http://svn.greenstone.org/gs2-extensions/gnome-lib/trunk/gnome-lib-minimal-$gl_suffix.tar.gz gl.tar.gz 
     95    tar xvzf gl.tar.gz 
     96        cd gnome-lib-minimal 
     97        source devel.bash 
     98 
     99        cd ../.. 
     100 
    67101 
    68102    #configure 
     
    179213    echo "result: "$result 
    180214    if [ "$result" != "yes" ]; then 
    181         echo 'gsdl regression test for '$dateid' failed' | mail -s $1' Regression Test Failed' $WEBMASTER_EMAIL 
     215        echo 'gsdl regression test for '$dateid' failed' | mail -s $1' Regression Test Failed' $MONITOR_EMAIL 
     216        #$WEBMASTER_EMAIL 
    182217    fi 
    183218    echo "done"