From 56f98706751cb5cf74cb82e2b73749282c8ed5ee Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Tue, 18 Jun 2024 14:10:21 +0200 Subject: [PATCH] chore: publish script edits readme path to current directory (#533) --- publish.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/publish.sh b/publish.sh index b2815ebe4..c9413ca81 100755 --- a/publish.sh +++ b/publish.sh @@ -10,6 +10,7 @@ cp -r LICENSE README.md "$tmp"/. ### Publish the 2D version. sed 's#\.\./src#src#g' bevy_rapier2d/Cargo.toml > "$tmp"/Cargo.toml +gawk -i inplace '{ gsub("../README.md", "README.md") }; { print }' "$tmp"/Cargo.toml currdir=$(pwd) cd "$tmp" && cargo publish cd "$currdir" || exit @@ -17,6 +18,7 @@ cd "$currdir" || exit ### Publish the 3D version. sed 's#\.\./src#src#g' bevy_rapier3d/Cargo.toml > "$tmp"/Cargo.toml +gawk -i inplace '{ gsub("../README.md", "README.md") }; { print }' "$tmp"/Cargo.toml cp -r LICENSE README.md "$tmp"/. cd "$tmp" && cargo publish