Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7fd7eda8dc
Fetching contributors…

Cannot retrieve contributors at this time

executable file 31 lines (23 sloc) 0.597 kb
#!/usr/bin/env bash
# bin/compile <build-dir> <cache-dir>
# fail fast
set -e
#set -x
unset GIT_DIR
mkdir -p "$1" "$2"
BUILD_DIR=$(cd "$1/" && pwd)
CACHE_DIR=$(cd "$2/" && pwd)
function message {
echo "$1"
sync
}
DART_SDK_URL="http://commondatastorage.googleapis.com/dart-editor-archive-integration/latest/dartsdk-linux-64.tar.gz"
#if [ ! -e "$CACHE_DIR/dart" ]; then
message "-----> Installing latest Dart VM"
cd $CACHE_DIR
curl -L $DART_SDK_URL -s -o - | tar xzf -
#else
# message "-----> Using cached Dart VM"
#fi
mkdir -p $BUILD_DIR/bin
cp $CACHE_DIR/dart $BUILD_DIR/bin/dart
Jump to Line
Something went wrong with that request. Please try again.