source: other-projects/nightly-tasks/crons-and-scripts/linux32/run-gs3-caveat.sh@ 32404

Last change on this file since 32404 was 32404, checked in by ak19, 6 years 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 *
File size: 1.2 KB
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 repository browser.