Changeset 32401


Ignore:
Timestamp:
08/30/18 20:26:47 (3 years ago)
Author:
ak19
Message:

Introduced BASEDIR variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nightly-tasks/crons-and-scripts/macos/macos_gsbins_cron.sh.TEMPLATE

    r32398 r32401  
    44hdutil eject /dev/disk1
    55
     6# BASEDIR is the parent folder of envi and release-kits (assuming they share a parent folder)
     7BASEDIR=/Users/Shared/RELEASES
     8
    69# Set up the correct versions of svn and Java if the correct versions aren't already on the PATH
    710# However, this is only for any svn and java commands in this file
    811# The release kit uses envi to set up its environment at
    912# envi/etc/environment.pl and envi/etc/tasks/snapshot/environment.pl
    10 export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
     13#export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
     14export JAVA_HOME=$BASEDIR/JDK7u72
    1115echo "@@@ JAVA_HOME set to $JAVA_HOME"
    12 #export PATH=/opt/subversion/bin/:$JAVA_HOME/bin:$PATH
     16export PATH=$BASEDIR/subversion/bin:$JAVA_HOME/bin:$PATH
    1317#export HINT=/System/Library/Frameworks/JavaVM.framework/Versions/Current
    1418
    15 env >> /Volumes/Research/nzdl/logs/caveats.log 2>&1;
     19env >> $BASEDIR/logs/caveats.log 2>&1;
    1620
    1721# update the release-kits
    1822echo "@@@ Updating the release-kits"
    19 svn up /Volumes/Research/nzdl/release-kits
     23svn up $BASEDIR/release-kits
    2024
    2125
     
    2327echo "Generating the caveats"
    2428
    25 cd /Volumes/Research/nzdl/envi/bin
     29cd $BASEDIR/envi/bin
    2630
    2731# if a param is passed in and it's 2, generate GS2 caveat
     
    4549    elif test "$1" == "2" ; then
    4650        echo "Caveat 2";
    47         ./envi gs2-caveat >> /Volumes/Research/nzdl/logs/caveats.log 2>&1;
     51        ./envi gs2-caveat >> $BASEDIR/logs/caveats.log 2>&1;
    4852    elif test "$1" == "3" ; then
    4953        echo "Caveat 3";
    50         ./envi gs3-caveat >> /Volumes/Research/nzdl/logs/caveats.log 2>&1;     
     54        ./envi gs3-caveat >> $BASEDIR/logs/caveats.log 2>&1;       
    5155    elif test "$1" == "release" ; then
    5256        if test -z "$2" ; then
     
    5761            echo "$*"; # "Release folder"
    5862            export TASK_NAME=release;
    59             ./envi $* >> /Volumes/Research/nzdl/logs/release-$2.log 2>&1;
     63            ./envi $* >> $BASEDIR/logs/release-$2.log 2>&1;
    6064        fi
    6165    else
     
    6468else
    6569    echo "Both caveats";
    66     ./envi caveats >> /Volumes/Research/nzdl/logs/caveats.log 2>&1;
     70    ./envi caveats >> $BASEDIR/logs/caveats.log 2>&1;
    6771fi
    6872
    6973
    7074
    71 #./envi caveats >> /Volumes/Research/nzdl/logs/caveats.log 2>&1
    72 #./envi gs3-caveat >> /Volumes/Research/nzdl/logs/caveats.log 2>&1
    73 #./envi gs2-caveat >> /Volumes/Research/nzdl/logs/caveats.log 2>&1
     75#./envi caveats >> $BASEDIR/logs/caveats.log 2>&1
     76#./envi gs3-caveat >> $BASEDIR/logs/caveats.log 2>&1
     77#./envi gs2-caveat >> $BASEDIR/logs/caveats.log 2>&1
    7478
Note: See TracChangeset for help on using the changeset viewer.