blob: fd9e8fc75918b6dfd9d92353fdb14b13a962d0b2 [file] [log] [blame]
#!/bin/bash
# Copyright 2020 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.
#### CATEGORY=Source tree
### sync integration and deps to a state matching fuchsia.git state
## usage: sync-from-stem.py [-h] [fuchsia_dir]
##
## Run 'fx sync-from-stem -h' for more information.
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/../lib/vars.sh || exit $?
fx-config-read
if [ $# -gt 0 ]; then
${FUCHSIA_DIR}/scripts/sync-from-stem.py "$@"
else
${FUCHSIA_DIR}/scripts/sync-from-stem.py "${FUCHSIA_DIR}"
fi