From b951c38638cacba2159855e6b5fc7725c922ec40 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Mon, 25 Jul 2022 22:53:03 +0100 Subject: [PATCH] Do this in the correct place (made a mistake when rebasing) --- release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release.sh b/release.sh index b1a880b1..01a5156c 100755 --- a/release.sh +++ b/release.sh @@ -46,7 +46,7 @@ fi TAGNAME="v$VERSION" -for PROJECT_TOML_FILE in agb/Cargo.toml agb-*/Cargo.toml template/Cargo.toml; do +for PROJECT_TOML_FILE in agb/Cargo.toml agb-*/Cargo.toml; do DIRECTORY=$(dirname "$PROJECT_TOML_FILE") # Update the version in Cargo.toml @@ -59,7 +59,7 @@ for PROJECT_TOML_FILE in agb/Cargo.toml agb-*/Cargo.toml template/Cargo.toml; do # also update the agb version in the template and the examples sed -i -e "s/^agb = \".*\"/agb = \"$VERSION\"/" template/Cargo.toml - for EXAMPLE_TOML_FILE in examples/*/Cargo.toml book/games/*/Cargo.toml; do + for EXAMPLE_TOML_FILE in examples/*/Cargo.toml book/games/*/Cargo.toml template/Cargo.toml; do EXAMPLE_DIR=$(dirname "$EXAMPLE_TOML_FILE") sed -E -i -e "/agb =/ s/version = \"[^\"]+\"/version = \"$VERSION\"/" "$EXAMPLE_DIR/Cargo.toml" (cd "$EXAMPLE_DIR" && cargo update)