| #!/bin/bash -e |
| # Copyright 2020 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| # Obtain the most recent proto descriptors from chromiumos/infra/proto protos. |
| # This is needed to work with these protos from *.star code. |
| |
| echo "Generating proto descriptors..." |
| TNULL_DIR="$(dirname "$(realpath -e "${BASH_SOURCE[0]}")")" |
| cd ${TNULL_DIR} |
| ./_generate_proto_descriptors.sh |
| echo "Generating metadata from descriptors..." |
| lucicfg generate main.star |