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

Revision 32404, 1.2 KB (checked in by ak19, 14 months ago)

Linux32 VM's scripts for generating nightly and release binaries (including the scripts for generating other release packages that are run only on the 32 bit VM, e.g. sork)

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