From 155fb9b1c08a2c86fb36462d953790befe965164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sun, 15 Jan 2023 16:37:15 +0100 Subject: [PATCH] Use gsed in testbed publish script --- publish-testbeds.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/publish-testbeds.sh b/publish-testbeds.sh index 24ef41027..cf2b259f8 100755 --- a/publish-testbeds.sh +++ b/publish-testbeds.sh @@ -10,16 +10,16 @@ cp -r crates "$tmp"/. cp -r LICENSE README.md "$tmp"/. ### Publish the 2D version. -sed 's#\.\./\.\./src#src#g' crates/rapier_testbed2d/Cargo.toml > "$tmp"/Cargo.toml -sed -i 's#\.\./rapier#./crates/rapier#g' "$tmp"/Cargo.toml +gsed 's#\.\./\.\./src#src#g' crates/rapier_testbed2d/Cargo.toml > "$tmp"/Cargo.toml +gsed -i 's#\.\./rapier#./crates/rapier#g' "$tmp"/Cargo.toml currdir=$(pwd) cd "$tmp" && cargo publish cd "$currdir" || exit ### Publish the 3D version. -sed 's#\.\./\.\./src#src#g' crates/rapier_testbed3d/Cargo.toml > "$tmp"/Cargo.toml -sed -i 's#\.\./rapier#./crates/rapier#g' "$tmp"/Cargo.toml +gsed 's#\.\./\.\./src#src#g' crates/rapier_testbed3d/Cargo.toml > "$tmp"/Cargo.toml +gsed -i 's#\.\./rapier#./crates/rapier#g' "$tmp"/Cargo.toml cp -r LICENSE README.md "$tmp"/. cd "$tmp" && cargo publish