| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 ###################################################################### | 153 ###################################################################### |
| 154 # ARM UN-TRUSTED | 154 # ARM UN-TRUSTED |
| 155 ###################################################################### | 155 ###################################################################### |
| 156 | 156 |
| 157 #@ label should be in : | 157 #@ label should be in : |
| 158 #@ | 158 #@ |
| 159 #@ pnacl_linux_x86 | 159 #@ pnacl_linux_x86 |
| 160 #@ pnacl_mac_x86 | 160 #@ pnacl_mac_x86 |
| 161 #@ pnacl_win_x86 | 161 #@ pnacl_win_x86 |
| 162 | 162 |
| 163 UploadPnaclToolchains() { | 163 UploadToolchainTarball() { |
| 164 local rev=$1 | 164 local rev=$1 |
| 165 local label=$2 | 165 local label=$2 |
| 166 local tarball=$3 | 166 local tarball=$3 |
| 167 | 167 |
| 168 ComputeSha1 ${tarball} > ${tarball}.sha1hash | 168 ComputeSha1 ${tarball} > ${tarball}.sha1hash |
| 169 UploadArchive toolchain/${rev}/naclsdk_${label}.tgz.sha1hash ${tarball}.sha1ha
sh | 169 UploadArchive toolchain/${rev}/naclsdk_${label}.tgz.sha1hash ${tarball}.sha1ha
sh |
| 170 | 170 |
| 171 # NOTE: only the last link is shown on the waterfall so this should come last | 171 # NOTE: only the last link is shown on the waterfall so this should come last |
| 172 UploadArchive toolchain/${rev}/naclsdk_${label}.tgz ${tarball} | 172 UploadArchive toolchain/${rev}/naclsdk_${label}.tgz ${tarball} |
| 173 } | 173 } |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 Usage | 296 Usage |
| 297 exit -1 | 297 exit -1 |
| 298 elif [[ "$(type -t $1)" != "function" ]]; then | 298 elif [[ "$(type -t $1)" != "function" ]]; then |
| 299 echo "ERROR: unknown function '$1'." >&2 | 299 echo "ERROR: unknown function '$1'." >&2 |
| 300 echo "For help, try:" | 300 echo "For help, try:" |
| 301 echo " $0 help" | 301 echo " $0 help" |
| 302 exit 1 | 302 exit 1 |
| 303 else | 303 else |
| 304 "$@" | 304 "$@" |
| 305 fi | 305 fi |
| OLD | NEW |