source: main/trunk/gs-release-builder/create-gs2-caveat-linux64.sh@ 36223

Last change on this file since 36223 was 36223, checked in by kjdon, 23 months ago

use envi.pl not envi - the latter was an exact copy of the former, and not in svn

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