• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env bash
2#
3# Copyright 2020 The ChromiumOS Authors
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7# A convenience script to regenerate util/README.md with the util/docgen/main.go
8# program.
9script_dir="$(realpath "$(dirname "$0")")"
10cd "${script_dir}" || exit 1
11
12set -e
13
14source "${script_dir}/../../setup_cipd.sh"
15
16go get go.chromium.org/luci/lucicfg/docgen
17
18go run main.go \
19    -template "README.mdt" \
20    -output "../README.md" \
21    -starlarkRoot "../../.."