mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-24 12:24:56 +00:00
15 lines
462 B
Bash
Executable File
15 lines
462 B
Bash
Executable File
#!/bin/bash
|
|
|
|
content=$(
|
|
cat <<END
|
|
<!-- this part generated by update-readme.sh -->
|
|
$(cargo run --bin rga -- --rga-list-adapters)
|
|
|
|
$(help2man -N "cargo run --bin rga --" | pandoc -f man -t markdown --atx-headers | rg --multiline "## USAGE:(.|\n)*")
|
|
<!-- end of part generated by update-readme.sh -->
|
|
END
|
|
)
|
|
|
|
rg --passthrough --multiline '.*update-readme.sh(.|\n)*update-readme.sh.*' README.md --replace "$content" | sponge README.md
|
|
prettier --write README.md
|