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

Last change on this file since 33723 was 33723, checked in by ak19, 4 years ago

On linux 64 bit, the additional wrap command did not work because the snapshot folder is actually called gs2/3-caveat-x64 and not gs2/3-caveat as it is on the 32 bit machine. Not all references to the folder on the 64 bit machine were correct. Fixed now.

  • 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-x64/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-x64 upload
41
42 # back to lsb root
43 cd /
44fi
Note: See TracBrowser for help on using the repository browser.