| OLD | NEW |
| 1 #!/bin/bash | 1 #!/usr/bin/env bash |
| 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 # This script will download VAR_DOWNLOAD_URL to VAR_DESTINATION in the current | 6 # This script will download VAR_DOWNLOAD_URL to VAR_DESTINATION in the current |
| 7 # working directory. | 7 # working directory. |
| 8 | 8 |
| 9 CHROMIUM_DIR="$(dirname $BASH_SOURCE)" | 9 CHROMIUM_DIR="$(dirname $BASH_SOURCE)" |
| 10 SDK_BIN="$CHROMIUM_DIR/../dart-sdk/bin" | 10 SDK_BIN="$CHROMIUM_DIR/../dart-sdk/bin" |
| 11 | 11 |
| 12 DART="$SDK_BIN/dart" | 12 DART="$SDK_BIN/dart" |
| 13 DOWNLOAD_SCRIPT="$CHROMIUM_DIR/download_file.dart" | 13 DOWNLOAD_SCRIPT="$CHROMIUM_DIR/download_file.dart" |
| 14 | 14 |
| 15 "$DART" "$DOWNLOAD_SCRIPT" "VAR_DOWNLOAD_URL" "VAR_DESTINATION" | 15 "$DART" "$DOWNLOAD_SCRIPT" "VAR_DOWNLOAD_URL" "VAR_DESTINATION" |
| OLD | NEW |