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