don't run cargo update on the template

This commit is contained in:
Corwin 2022-07-30 23:40:14 +01:00
parent 3ec95a0277
commit 9f3079ecef

View file

@ -2,6 +2,7 @@
# Fail if any command fails # Fail if any command fails
set -e set -e
set -x
VERSION=$1 VERSION=$1
NO_COMMIT=$2 NO_COMMIT=$2
@ -62,6 +63,9 @@ for PROJECT_TOML_FILE in agb/Cargo.toml agb-*/Cargo.toml; do
for EXAMPLE_TOML_FILE in examples/*/Cargo.toml book/games/*/Cargo.toml template/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") EXAMPLE_DIR=$(dirname "$EXAMPLE_TOML_FILE")
sed -E -i -e "/agb =/ s/version = \"[^\"]+\"/version = \"$VERSION\"/" "$EXAMPLE_DIR/Cargo.toml" sed -E -i -e "/agb =/ s/version = \"[^\"]+\"/version = \"$VERSION\"/" "$EXAMPLE_DIR/Cargo.toml"
done
for EXAMPLE_TOML_FILE in examples/*/Cargo.toml book/games/*/Cargo.toml; do
EXAMPLE_DIR=$(dirname "$EXAMPLE_TOML_FILE")
(cd "$EXAMPLE_DIR" && cargo update) (cd "$EXAMPLE_DIR" && cargo update)
done done
else else