summaryrefslogtreecommitdiffstats
path: root/src/doc/book/tools/convert-quotes.sh
blob: bffe82359f0167d4ce6ab5de7a7a66088056da51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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