rust-book-cn/tools/convert-quotes.sh
2022-01-08 02:43:18 +08:00

13 lines
168 B
Bash
Executable File

#!/bin/bash
set -eu
mkdir -p tmp/src
rm -rf tmp/*.md
for f in src/"${1:-\"\"}"*.md
do
cargo run --bin convert_quotes < "$f" > "tmp/$f"
mv "tmp/$f" "$f"
done