blob: 1c3f8a3ac4abda59f92f89b46d33544855d9737e [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/pub get
tool/dart-sdk/bin/dart2native bin/main.dart -o build/fuchsia_ctl
cp -f LICENSE build/
popd