From 73c281518ab239cecd5fcbe42bf0dd57c7d4764a Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Mon, 23 Sep 2024 15:17:41 +0200 Subject: [PATCH] restore release scripts --- release.sh | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/release.sh b/release.sh index 3b0460d7c3..655ee34c4d 100755 --- a/release.sh +++ b/release.sh @@ -31,16 +31,16 @@ fi crate=$(tomato get package.name $CRATE_PATH/Cargo.toml) tomato set package.version $VERSION $CRATE_PATH/Cargo.toml -# if [ "$crate" = "tract-metal" ] -# then -# cargo publish --allow-dirty --no-verify -p $crate -# else -# cargo publish --allow-dirty -p $crate -# fi -# +if [ "$crate" = "tract-metal" ] +then + cargo publish --allow-dirty --no-verify -p $crate +else + cargo publish --allow-dirty -p $crate +fi + for other_cargo_toml in `find . -name Cargo.toml \! -path "./target/*" \! -path "./issue*"` do - for prefix in "" "dev-" "build-" 'cfg(any(target_os = \"macos\", target_os = \"ios\"' + for prefix in "" "dev-" "build-" do if tomato get "${prefix}dependencies.$crate" $other_cargo_toml | grep . then @@ -49,11 +49,11 @@ do done done -# cargo update -# -# if [ "$CRATE_PATH" = "cli" ] -# then -# git commit -m "release $VERSION" . -# git tag -f v"$VERSION" -# git push -f --tags -# fi +cargo update + +if [ "$CRATE_PATH" = "cli" ] +then + git commit -m "release $VERSION" . + git tag -f v"$VERSION" + git push -f --tags +fi