From 245f739e2dc92c1f54de25ec3cf6d8863d529d71 Mon Sep 17 00:00:00 2001 From: Aaran Xu Date: Sat, 8 Jan 2022 02:44:00 +0800 Subject: [PATCH] Update the edition in all the listings' Cargo.toml --- tools/update-editions.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 tools/update-editions.sh diff --git a/tools/update-editions.sh b/tools/update-editions.sh new file mode 100755 index 0000000..bd52bc9 --- /dev/null +++ b/tools/update-editions.sh @@ -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" '{}' \;