OLD | NEW |
---|---|
(Empty) | |
1 #!/bin/bash | |
2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. | |
3 # Use of this source code is governed by a BSD-style license that can be | |
4 # found in the LICENSE file. | |
5 | |
6 # Script assumed to be run in native_client/ | |
7 if [[ $(pwd) != */native_client ]]; then | |
Mark Seaborn
2013/12/11 20:42:06
Nit: Put ""s around "*/native_client" to prevent g
petarj
2013/12/11 22:18:41
I have changed it to:
if [[ $(basename $(pwd)) !=
Mark Seaborn
2013/12/11 22:34:52
Yes, that's better.
| |
8 echo "ERROR: must be run in native_client!" | |
9 exit 1 | |
10 fi | |
11 | |
12 set -x | |
13 set -e | |
14 set -u | |
15 | |
16 readonly UP_DOWN_LOAD="buildbot/file_up_down_load.sh" | |
17 readonly TRUSTED_TOOLCHAIN_CREATOR=\ | |
18 "tools/trusted_cross_toolchains/trusted-toolchain-creator.mipsel.debian.sh" | |
19 | |
20 UploadToolchainTarball() { | |
Mark Seaborn
2013/12/11 20:42:06
Rather than copying this function from file_up_dow
petarj
2013/12/11 22:18:41
Done.
| |
21 local rev=$1 | |
22 local label=$2 | |
23 local tarball=$3 | |
24 | |
25 ${UP_DOWN_LOAD} ComputeSha1 ${tarball} > ${tarball}.sha1hash | |
26 ${UP_DOWN_LOAD} UploadArchive \ | |
27 toolchain/${rev}/naclsdk_${label}.tgz.sha1hash ${tarball}.sha1hash | |
28 | |
29 ${UP_DOWN_LOAD} UploadArchive toolchain/${rev}/naclsdk_${label}.tgz ${tarball} | |
30 } | |
31 | |
32 echo @@@BUILD_STEP compile_toolchain@@@ | |
33 ${TRUSTED_TOOLCHAIN_CREATOR} nacl_sdk | |
34 | |
35 echo @@@BUILD_STEP upload_tarball@@@ | |
36 UploadToolchainTarball ${BUILDBOT_GOT_REVISION} linux_mips-trusted nacl_sdk.tgz | |
OLD | NEW |