summaryrefslogtreecommitdiffstats
path: root/src/doc/book/tools/update-editions.sh
blob: bd52bc9c812d279f82214f94f9ccc2cd21491962 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash

set -eu

OLD_EDITION=2018
NEW_EDITION=2021

find listings/** -name "Cargo.toml" -exec sed -i '' "s/edition = \"$OLD_EDITION\"/edition = \"$NEW_EDITION\"/g" '{}' \;