clone from: https://github.com/miquels/webdav-handler-rs
This commit is contained in:
13
generate-readme
Executable file
13
generate-readme
Executable file
@@ -0,0 +1,13 @@
|
||||
#! /bin/sh
|
||||
|
||||
VERSION=$(sed -ne 's!^version *= *"\(.*\)".*!\1!p' Cargo.toml)
|
||||
DOCS="https://docs.rs/webdav-handler/$VERSION/webdav_handler"
|
||||
|
||||
if ! fgrep "$VERSION" src/lib.rs >/dev/null
|
||||
then
|
||||
echo "WARNING: html_root_url in src/lib.rs out of date"
|
||||
fi
|
||||
|
||||
cargo readme |
|
||||
sed -e 's!^\(.*\]: \)\(.*\.html\)$!\1'"$DOCS"'/\2!' > README.md
|
||||
|
||||
Reference in New Issue
Block a user