Debian Codegraph @

scripts/regenerate-readmes.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2
3 # Copyright (c) The cargo-guppy Contributors
4 # SPDX-License-Identifier: MIT OR Apache-2.0
5
6 # Regenerate readme files in this repository.
7
8 set -eo pipefail
9
10 cd "$(git rev-parse --show-toplevel)"
11 git ls-files | grep README.tpl$ | while read -r readme; do
12 dir=$(dirname "$readme")
13 cargo readme --project-root "$dir" > "$dir/README.md.tmp"
14 gawk -f "scripts/fix-readmes.awk" "$dir/README.md.tmp" > "$dir/README.md"
15 rm "$dir/README.md.tmp"
16 done