mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-02-02 15:28:40 +08:00
Update the edition in all the listings' Cargo.toml
This commit is contained in:
parent
9dd1b807c4
commit
245f739e2d
8
tools/update-editions.sh
Executable file
8
tools/update-editions.sh
Executable file
@ -0,0 +1,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" '{}' \;
|
Loading…
Reference in New Issue
Block a user