Debian Codegraph @

scripts/regenerate-readmes.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/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 "$(gitscip-shell system . . git. rev-parse --show-toplevel)"
11 gitscip-shell system . . git. ls-files | grepscip-shell system . . grep. README.tpl$ | while read -r readme; do
12 dir=$(dirnamescip-shell system . . dirname. "$readme")
13 cargoscip-shell system . . cargo. readme --project-root "$dir" > "$dir/README.md.tmp"
14 gawkscip-shell system . . gawk. -f "scripts/fix-readmes.awk" "$dir/README.md.tmp" > "$dir/README.md"
15 rmscip-shell system . . rm. "$dir/README.md.tmp"
16 done