blob: fafe7f4eb48ea0e61d6e2e892d70a6b74c72113b [file] [log] [blame]
# Copyright 2017 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
### clean the build directory and then perform a full build
set -e
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/lib/ || exit $?
if [[ "$#" -gt 0 ]]; then
fx-error "clean-build no longer takes additional arguments, use fx set to alter build parameters"
exit 1
fx-command-run clean
fx-command-run build