| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 | 2 |
| 3 # Copyright 2014 Google Inc. | 3 # Copyright 2014 Google Inc. |
| 4 # | 4 # |
| 5 # Use of this source code is governed by a BSD-style license that can be | 5 # Use of this source code is governed by a BSD-style license that can be |
| 6 # found in the LICENSE file. | 6 # found in the LICENSE file. |
| 7 | 7 |
| 8 | 8 |
| 9 usage() { | 9 usage() { |
| 10 cat >&2 <<EOF | 10 cat >&2 <<EOF |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 local working_directory="$1" | 131 local working_directory="$1" |
| 132 try mkdir -p "$working_directory" || return | 132 try mkdir -p "$working_directory" || return |
| 133 | 133 |
| 134 try download_necessary_software_to_dir "$working_directory" || return | 134 try download_necessary_software_to_dir "$working_directory" || return |
| 135 | 135 |
| 136 try install_compiler "$working_directory" || return | 136 try install_compiler "$working_directory" || return |
| 137 | 137 |
| 138 try install_runtime "$working_directory" || return | 138 try install_runtime "$working_directory" || return |
| 139 | 139 |
| 140 try start_arm64_image "$working_directory" || return | 140 try start_arm64_image "$working_directory" || return |
| 141 | |
| 142 try start_arm64_image \ | |
| 143 "$working_directory" \ | |
| 144 || return | |
| 145 } | 141 } |
| 146 | 142 |
| 147 for command in gsutil xz tar md5sum gunzip; do | 143 for command in gsutil xz tar md5sum gunzip; do |
| 148 try command -v "$command" > /dev/null || usage || exit | 144 try command -v "$command" > /dev/null || usage || exit |
| 149 done | 145 done |
| 150 | 146 |
| 151 if [ -z "$1" ] ; then | 147 if [ -z "$1" ] ; then |
| 152 usage || exit | 148 usage || exit |
| 153 fi | 149 fi |
| 154 try arm64_download "$1" | 150 try arm64_download "$1" |
| OLD | NEW |