File: regenerate-readmes.sh

package info (click to toggle)
rust-debug-ignore 1.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 152 kB
  • sloc: sh: 6; makefile: 2
file content (14 lines) | stat: -rwxr-xr-x 362 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

# Copyright (c) The cargo-guppy Contributors
# SPDX-License-Identifier: MIT OR Apache-2.0

# Regenerate readme files in this repository.

set -eo pipefail

cd "$(git rev-parse --show-toplevel)"
git ls-files | grep README.tpl$ | while read -r readme; do
  dir=$(dirname "$readme")
  cargo readme --project-root "$dir" > "$dir/README.md"
done