Do this in the correct place (made a mistake when rebasing)

This commit is contained in:
Gwilym Kuiper 2022-07-25 22:53:03 +01:00
parent ecf43f738b
commit b951c38638

View file

@ -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)