aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2023-01-15 16:37:15 +0100
committerSébastien Crozet <developer@crozet.re>2023-01-15 16:38:24 +0100
commit155fb9b1c08a2c86fb36462d953790befe965164 (patch)
tree063ec876ef05fa8c6a2ad83aa17f48eee05d22ce
parentff4c885195eb6adef2a318134aedcb985b6e88b4 (diff)
downloadrapier-155fb9b1c08a2c86fb36462d953790befe965164.tar.gz
rapier-155fb9b1c08a2c86fb36462d953790befe965164.tar.bz2
rapier-155fb9b1c08a2c86fb36462d953790befe965164.zip
Use gsed in testbed publish script
-rwxr-xr-xpublish-testbeds.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/publish-testbeds.sh b/publish-testbeds.sh
index 24ef410..cf2b259 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