| 1 | #!/usr/bin/env bash |
| 2 | # |
| 3 | # Copyright 2024 The Fuchsia Authors |
| 4 | # |
| 5 | # Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0 |
| 6 | # <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT |
| 7 | # license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option. |
| 8 | # This file may not be copied, modified, or distributed except according to |
| 9 | # those terms. |
| 10 | |
| 11 | set -eo pipefail |
| 12 | |
| 13 | # Install again in case the installation failed during the |
| 14 | # `generate_cache` step. We treat that step as best-effort and |
| 15 | # suppress all errors from it. |
| 16 | cargo install -q cargo-readme --version 3.2.0 |
| 17 | |
| 18 | diff <(cargo -q run --config tools/.cargo/config.toml --manifest-path tools/Cargo.toml -p generate-readme) README.md >&2 |
| 19 | exit $? |