#!/usr/bin/env bash # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. # This script will download VAR_DOWNLOAD_URL to VAR_DESTINATION in the current # working directory. global CHROMIUM_DIR := $[dirname $BASH_SOURCE] global SDK_BIN := ""$CHROMIUM_DIR/../dart-sdk/bin"" global DART := ""$SDK_BIN/dart"" global DOWNLOAD_SCRIPT := ""$CHROMIUM_DIR/download_file.dart"" $DART $DOWNLOAD_SCRIPT "VAR_DOWNLOAD_URL" "VAR_DESTINATION" (CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:CHROMIUM_DIR) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [(C {(dirname)} {($ VSub_Name "$BASH_SOURCE")})] ) left_token: spids: [22 26] ) ) } spids: [20] ) ] spids: [20] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:SDK_BIN) op: Equal rhs: {(DQ ($ VSub_Name "$CHROMIUM_DIR") (/../dart-sdk/bin))} spids: [29] ) ] spids: [29] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:DART) op: Equal rhs: {(DQ ($ VSub_Name "$SDK_BIN") (/dart))} spids: [36] ) ] spids: [36] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:DOWNLOAD_SCRIPT) op: Equal rhs: {(DQ ($ VSub_Name "$CHROMIUM_DIR") (/download_file.dart))} spids: [42] ) ] spids: [42] ) (C {(DQ ($ VSub_Name "$DART"))} {(DQ ($ VSub_Name "$DOWNLOAD_SCRIPT"))} {(DQ (VAR_DOWNLOAD_URL))} {(DQ (VAR_DESTINATION))} ) ] )