rust-book-cn/tools/convert-quotes.sh

13 lines
168 B
Bash
Raw Normal View History

2021-05-09 17:15:21 +08:00
#!/bin/bash
set -eu
2022-01-08 02:43:18 +08:00
mkdir -p tmp/src
rm -rf tmp/*.md
2021-05-09 17:15:21 +08:00
2022-01-08 02:43:18 +08:00
for f in src/"${1:-\"\"}"*.md
2021-05-09 17:15:21 +08:00
do
2022-01-08 02:43:18 +08:00
cargo run --bin convert_quotes < "$f" > "tmp/$f"
2021-05-09 17:15:21 +08:00
mv "tmp/$f" "$f"
done