#!/bin/bash

# RUN AS: ./run-gs3-diffcol.sh [setup_greenstone|run_test|summarise|upload] [opts] [colnames]
# e.g.
# all: ./run-gs3-diffcol.sh  (this uses option 'all', which runs, in order, setup_greenstone, run_test, summarise, upload)
# or: ./run-gs3-diffcol.sh --help
# or: ./run-gs3-diffcol.sh run_test --justdiff  [colnames]
# or: ./run-gs3-diffcol.sh run_test --nosvn  [colnames]
# or: ./run-gs3-diffcol.sh summarise

echo "RUNNING GS3 DIFFCOL at " `date` > outdiffcol.txt
env >> outdiffcol.txt
cd /greenstone/gs-release-builder/envi/bin
#cd /greenstone/envi/bin

PERL_HOME=/greenstone/gs-release-builder/ext-cli/selfcontained-perl-with-cpan/gsperl5-with-cpan-linux64
LD_LIBRARY_PATH="$PERL_HOME/lib/:$LD_LIBRARY_PATH" ;      export LD_LIBRARY_PATH
$PERL_HOME/bin/perl -S ./envi.pl diffcol --gs3 $*
