blob: 0043472e71c7f1869d169081f949b66be90c2f4f [file] [log] [blame]
#!/bin/bash
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e
command -v cipd > /dev/null || {
echo "Please install CIPD (available from depot_tools) and add to path first.";
exit -1;
}
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)"
cipd ensure -ensure-file $DIR/ensure_file -root $DIR
pushd $DIR/..
if [[ -d "build" ]]; then
echo "Please remove the build directory before proceeding"
exit -1
fi
mkdir -p build
tool/dart-sdk/bin/dart pub get
tool/dart-sdk/bin/dart compile exe bin/main.dart -o build/fuchsia_ctl
cp -f LICENSE build/
popd