Jacob Kopczynski | c681785 | 2020-06-09 14:17:55 -0700 | [diff] [blame] | 1 | #!/bin/bash -e |
| 2 | # Copyright 2020 The Chromium OS Authors. All rights reserved. |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
| 5 | |
| 6 | # Obtain the most recent proto descriptors from chromiumos/infra/proto protos. |
| 7 | # This is needed to work with these protos from *.star code. |
| 8 | |
| 9 | echo "Generating proto descriptors..." |
Sean Abraham | 7edcef3 | 2020-10-14 11:14:00 -0600 | [diff] [blame] | 10 | TNULL_DIR="$(dirname "$(realpath -e "${BASH_SOURCE[0]}")")" |
| 11 | cd ${TNULL_DIR} |
Jacob Kopczynski | 64f705e | 2020-06-21 13:37:23 -0700 | [diff] [blame] | 12 | ./_generate_proto_descriptors.sh |
Jacob Kopczynski | c681785 | 2020-06-09 14:17:55 -0700 | [diff] [blame] | 13 | echo "Generating metadata from descriptors..." |
| 14 | lucicfg generate main.star |
Sean Abraham | 22acb0c | 2020-11-24 13:47:25 -0700 | [diff] [blame^] | 15 | |
| 16 | echo "// Copyright 2020 The Chromium OS Authors. All rights reserved. |
| 17 | // Use of this source code is governed by a BSD-style license that can be |
| 18 | // found in the LICENSE file. |
| 19 | |
| 20 | package cmd |
| 21 | |
| 22 | // This file is written automatically by generate_metadata.sh. |
| 23 | // DO NOT EDIT. |
| 24 | |
| 25 | const configData = \`$(cat metadata/generated/config.cfg)\`" \ |
| 26 | > src/tnull/cmd/config.go |