Skip to content

Commit 11b888d

Browse files
also change build-deps
1 parent fc75a63 commit 11b888d

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

release.sh

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,13 @@ cargo publish --allow-dirty -p $crate
3535

3636
for other_cargo_toml in `find . -name Cargo.toml \! -path "./target/*" \! -path "./issue*"`
3737
do
38-
if tomato get dependencies.$crate $other_cargo_toml | grep .
39-
then
40-
tomato set "dependencies.$crate.version" "=$VERSION" $other_cargo_toml
41-
fi
42-
if tomato get dev-dependencies.$crate $other_cargo_toml | grep .
43-
then
44-
tomato set "dev-dependencies.$crate.version" "=$VERSION" $other_cargo_toml
45-
fi
38+
for prefix in "" "dev-" "build-"
39+
do
40+
if tomato get ${prefix}dependencies.$crate $other_cargo_toml | grep .
41+
then
42+
tomato set "${prefix}dependencies.$crate.version" "=$VERSION" $other_cargo_toml
43+
fi
44+
done
4645
done
4746

4847
cargo update

0 commit comments

Comments
 (0)