OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 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 #@ This script for up/downloading native client toolchains, etc.. | 6 #@ This script for up/downloading native client toolchains, etc.. |
7 #@ To manually inspect what is on the store servers point your | 7 #@ To manually inspect what is on the store servers point your |
8 #@ browser at: | 8 #@ browser at: |
9 #@ http://gsdview.appspot.com/nativeclient-archive2/ | 9 #@ http://gsdview.appspot.com/nativeclient-archive2/ |
10 | 10 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 #@ pnacl_linux_x86 | 155 #@ pnacl_linux_x86 |
156 #@ pnacl_mac_x86 | 156 #@ pnacl_mac_x86 |
157 #@ pnacl_win_x86 | 157 #@ pnacl_win_x86 |
158 | 158 |
159 UploadToolchainTarball() { | 159 UploadToolchainTarball() { |
160 local rev=$1 | 160 local rev=$1 |
161 local label=$2 | 161 local label=$2 |
162 local tarball=$3 | 162 local tarball=$3 |
163 | 163 |
164 ComputeSha1 ${tarball} > ${tarball}.sha1hash | 164 ComputeSha1 ${tarball} > ${tarball}.sha1hash |
165 UploadArchive toolchain/${rev}/naclsdk_${label}.tgz.sha1hash ${tarball}.sha1ha
sh | 165 # UploadArchive toolchain/${rev}/naclsdk_${label}.tgz.sha1hash ${tarball}.sha1
hash |
| 166 UploadTrybot toolchain/${rev}/naclsdk_${label}.tgz.sha1hash ${tarball}.sha1has
h |
166 | 167 |
167 # NOTE: only the last link is shown on the waterfall so this should come last | 168 # NOTE: only the last link is shown on the waterfall so this should come last |
168 UploadArchive toolchain/${rev}/naclsdk_${label}.tgz ${tarball} | 169 # UploadArchive toolchain/${rev}/naclsdk_${label}.tgz ${tarball} |
| 170 UploadTrybot toolchain/${rev}/naclsdk_${label}.tgz ${tarball} |
169 } | 171 } |
170 | 172 |
171 DownloadPnaclToolchains() { | 173 DownloadPnaclToolchains() { |
172 local rev=$1 | 174 local rev=$1 |
173 local label=$2 | 175 local label=$2 |
174 local tarball=$3 | 176 local tarball=$3 |
175 | 177 |
176 DownloadArchive toolchain/${rev}/naclsdk_${label}.tgz ${tarball} | 178 DownloadArchive toolchain/${rev}/naclsdk_${label}.tgz ${tarball} |
177 } | 179 } |
178 | 180 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 Usage | 286 Usage |
285 exit -1 | 287 exit -1 |
286 elif [[ "$(type -t $1)" != "function" ]]; then | 288 elif [[ "$(type -t $1)" != "function" ]]; then |
287 echo "ERROR: unknown function '$1'." >&2 | 289 echo "ERROR: unknown function '$1'." >&2 |
288 echo "For help, try:" | 290 echo "For help, try:" |
289 echo " $0 help" | 291 echo " $0 help" |
290 exit 1 | 292 exit 1 |
291 else | 293 else |
292 "$@" | 294 "$@" |
293 fi | 295 fi |
OLD | NEW |