source: other-projects/nightly-tasks/crons-and-scripts/linux64/create-gs3-caveat.sh@ 32405

Last change on this file since 32405 was 32403, checked in by sjm84, 6 years ago

On linux, like on mac, there need to be create-gs*-caveat.sh variants to run the nightlies so that we get the same behaviour as on windows. On linux these are symbolic links to the run-gs*-caveat.sh scripts.

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