source: other-projects/nightly-tasks/crons-and-scripts/linux64/run-gs2-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.5 KB
Line 
1#!/bin/bash
2
3
4if [ "x$1" != "xwrap" ]; then
5 echo "RUNNING GS2 CAVEAT at " `date` > out.txt
6 env >> out.txt
7 cd /home/sjm84/envi/bin
8 ./envi gs2-caveat-x64 $*
9else
10
11# REDO the WRAP step, in case it failed
12# - prepend release-kits/bin to PATH (and also have access to svn)
13#source ./setup-env.sh
14# - go to the release folder and run the steps for the wrap stage:
15#cd /home/sjm84/snapshots/gs2-caveat-x64/from-*
16#rk2 create-installer
17#rk2 wrap
18# go back and run the upload step
19#cd /
20##cd -
21#./run-gs2-caveat.sh upload
22
23
24# $1 = "wrap"
25# On the 32 bit linux, the wrapping stage sometimes
26# fails when calculating sizeof during wrapping
27# Everything until then has usually worked, so we just
28# re-try wrapping to make the nightly binaries go through
29
30 cd /
31 source ./setup-env.sh
32
33 export PATH=/home/sjm84/release-kits/bin/:$PATH
34
35 # the star at the end does tab-completion
36 cd /home/sjm84/snapshots/gs2-caveat-x64/from*
37
38 # store a copy of the original build log
39 mv rk2.out rk2orig.out
40
41 #rk2 create-installer
42 rk2 wrap
43
44 # concatenate current log to the original build log, overwriting any previous rk2.out
45 # http://stackoverflow.com/questions/2150614/bash-shell-scripting-combining-txt-into-one-file
46 mv rk2.out rk2wrap.out
47 cat rk*.out > rk2.out
48 rm rk2wrap.out
49 rm rk2orig.out
50
51 # upload the newly wrapped binary and the log
52 cd /home/sjm84/envi/bin
53 ./envi gs2-caveat-x64 upload
54
55 # back to lsb root
56 cd /
57fi
Note: See TracBrowser for help on using the repository browser.