Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: buildbot/buildbot_toolchain_mips_trusted.sh

Issue 101713002: [MIPS] Upload a toolchain tarball for MIPS after the build step (Closed) Base URL: http://git.chromium.org/native_client/src/native_client.git@master
Patch Set: Use correct function. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « buildbot/buildbot_selector.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « buildbot/buildbot_selector.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698