OLD | NEW |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 # | 5 # |
6 | 6 |
7 # The nacl-install-{linux,mac,windows}-*.sh scripts should source this script. | 7 # The nacl-install-{linux,mac,windows}-*.sh scripts should source this script. |
8 # | 8 # |
9 | 9 |
10 set -o nounset | 10 set -o nounset |
11 set -o errexit | 11 set -o errexit |
12 | 12 |
13 RESULT=0 | 13 RESULT=0 |
14 MESSAGES= | 14 MESSAGES= |
15 | 15 |
16 BuildSuccess() { | 16 BuildSuccess() { |
17 echo "naclports nacl-install-all: Install SUCCEEDED $1 \ | 17 echo "naclports nacl-install-all: Install SUCCEEDED $1 \ |
18 ($NACL_PACKAGES_BITSIZE)" | 18 ($NACL_PACKAGES_ARCH)" |
jvoung - send to chromium...
2012/12/27 22:09:50
NACL_ARCH or NACL_PACKAGES_ARCH?
Sam Clegg
2012/12/28 15:31:43
Done.
| |
19 } | 19 } |
20 | 20 |
21 BuildFailure() { | 21 BuildFailure() { |
22 MESSAGE="naclports nacl-install-all: Install FAILED for $1 \ | 22 MESSAGE="naclports nacl-install-all: Install FAILED for $1 \ |
23 ($NACL_PACKAGES_BITSIZE)" | 23 ($NACL_PACKAGES_ARCH)" |
24 echo $MESSAGE | 24 echo $MESSAGE |
25 echo "@@@STEP_FAILURE@@@" | 25 echo "@@@STEP_FAILURE@@@" |
26 MESSAGES="$MESSAGES\n$MESSAGE" | 26 MESSAGES="$MESSAGES\n$MESSAGE" |
27 RESULT=1 | 27 RESULT=1 |
28 } | 28 } |
29 | 29 |
30 BuildPackage() { | 30 BuildPackage() { |
31 if make $1 ; then | 31 if make $1 ; then |
32 BuildSuccess $1 | 32 BuildSuccess $1 |
33 else | 33 else |
34 if [ ${BUILDBOT_BUILDERNAME:0:3} = win ] ; then | 34 if [ ${BUILDBOT_BUILDERNAME:0:3} = win ] ; then |
35 echo "@@@STEP_WARNINGS@@@" | 35 echo "@@@STEP_WARNINGS@@@" |
36 for i in 1 2 3 ; do | 36 for i in 1 2 3 ; do |
37 if make $1 ; then | 37 if make $1 ; then |
38 BuildSuccess $1 | 38 BuildSuccess $1 |
39 return | 39 return |
40 fi | 40 fi |
41 done | 41 done |
42 fi | 42 fi |
43 BuildFailure $1 | 43 BuildFailure $1 |
44 fi | 44 fi |
45 } | 45 } |
OLD | NEW |