mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +11:00
Do this in the correct place (made a mistake when rebasing)
This commit is contained in:
parent
ecf43f738b
commit
b951c38638
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue