Skip to content

Commit

Permalink
Use gsed in testbed publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
sebcrozet committed Jan 15, 2023
1 parent ff4c885 commit 155fb9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions publish-testbeds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 155fb9b

Please sign in to comment.