blob: d64c1c7bbb35e302d6f9b2abedd92bfa079b9029 [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
"${PREBUILT_PYTHON3}" "${FUCHSIA_DIR}/scripts/sync-from-stem.py" "$@"
else
"${PREBUILT_PYTHON3}" "${FUCHSIA_DIR}/scripts/sync-from-stem.py" "${FUCHSIA_DIR}"
fi