rust-book-cn/tools/convert-quotes.sh
2021-05-09 17:15:21 +08:00

14 lines
156 B
Bash

#!/bin/bash
set -eu
dir=$1
mkdir -p "tmp/$dir"
for f in $dir/*.md
do
cat "$f" | cargo run --bin convert_quotes > "tmp/$f"
mv "tmp/$f" "$f"
done