root/other-projects/nightly-tasks/crons-and-scripts/linux32/create-gs3-caveat.sh @ 32405

Revision 32405, 1.2 KB (checked in by ak19, 2 years ago)

On linux32, like on mac and linux64, there need to be create-gs*-caveat.sh variants to run the nightlies so that we can launch the same script names as we do on windows. On linux these are symbolic links to the run-gs*-caveat.sh scripts. SVN is supposed to allow committing symbolic links (internally stored differently)

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3
4
5if [ "$1" != "wrap" ]; then
6
7    # the stuff we usually do (what this script originally contained)
8
9    echo "RUNNING GS3 CAVEAT at " `date` > out.txt
10    env >> out.txt
11    cd /home/sjm84/envi/bin
12    ./envi gs3-caveat $*
13
14else
15
16# $1 = "wrap"
17# On the 32 bit linux, the wrapping stage sometimes
18# fails when calculating sizeof during wrapping
19# Everything until then has usually worked, so we just
20# re-try wrapping to make the nightly binaries go through
21
22    cd /
23    source ./setup-env.sh
24
25    export PATH=/home/sjm84/release-kits/bin/:$PATH
26
27    # the star at the end does tab-completion
28    cd /home/sjm84/snapshots/gs3-caveat/from*
29     
30    # store a copy of the original build log
31    mv rk3.out rk3orig.out
32   
33    #rk3 create-installer
34    rk3 wrap
35
36    # concatenate current log to the original build log, overwriting any previous rk2.out
37    # http://stackoverflow.com/questions/2150614/bash-shell-scripting-combining-txt-into-one-file
38    mv rk3.out rk3wrap.out
39    cat rk*.out > rk3.out
40    rm rk3wrap.out
41    rm rk3orig.out
42
43    # upload the newly wrapped binary and the log
44    cd /home/sjm84/envi/bin
45    ./envi gs3-caveat upload
46
47    # back to lsb root
48    cd /
49fi
Note: See TracBrowser for help on using the browser.