| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium 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 # Upload the generated output to Google storage. | 6 # Upload the generated output to Google storage. |
| 7 | 7 |
| 8 set -e | 8 set -e |
| 9 | 9 |
| 10 if [ ! -d "$1" ]; then | 10 if [ ! -d "$1" ]; then |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 # Skip if not directory | 28 # Skip if not directory |
| 29 if [ ! -d "$DIR" ]; then | 29 if [ ! -d "$DIR" ]; then |
| 30 continue | 30 continue |
| 31 fi | 31 fi |
| 32 | 32 |
| 33 case "$DIR" in | 33 case "$DIR" in |
| 34 */i686-pc-linux-gnu) | 34 */i686-pc-linux-gnu) |
| 35 export ARCH="Linux_ia32" | 35 export ARCH="Linux_ia32" |
| 36 ;; | 36 ;; |
| 37 | 37 |
| 38 */x86_64-unknown-linux-gnu) | 38 */x86_64-pc-linux-gnu) |
| 39 export ARCH="Linux_x64" | 39 export ARCH="Linux_x64" |
| 40 ;; | 40 ;; |
| 41 | 41 |
| 42 *) | 42 *) |
| 43 echo "Unknown architecture directory $DIR" | 43 echo "Unknown architecture directory $DIR" |
| 44 exit 1 | 44 exit 1 |
| 45 ;; | 45 ;; |
| 46 esac | 46 esac |
| 47 | 47 |
| 48 if [ ! -d "$ARCH" ]; then | 48 if [ ! -d "$ARCH" ]; then |
| (...skipping 10 matching lines...) Expand all Loading... |
| 59 upload_to_google_storage.py --bucket chromium-binutils "$BINUTILS_TAR_BZ2" | 59 upload_to_google_storage.py --bucket chromium-binutils "$BINUTILS_TAR_BZ2" |
| 60 git add -f "${BINUTILS_TAR_BZ2}.sha1" | 60 git add -f "${BINUTILS_TAR_BZ2}.sha1" |
| 61 done | 61 done |
| 62 | 62 |
| 63 echo "Please commit the new .sha1 to the Chromium repository" | 63 echo "Please commit the new .sha1 to the Chromium repository" |
| 64 echo "# git commit" | 64 echo "# git commit" |
| 65 echo "" | 65 echo "" |
| 66 echo "Make sure goma is updated with the new binutils *before* landing." | 66 echo "Make sure goma is updated with the new binutils *before* landing." |
| 67 echo " Notify {ukai,yyanagisawa,shinyak}@chromium.org with the .sha1 files" | 67 echo " Notify {ukai,yyanagisawa,shinyak}@chromium.org with the .sha1 files" |
| 68 echo " and await confirmation." | 68 echo " and await confirmation." |
| OLD | NEW |