From 5ef81cda406d796c5d188542b5bd9fbf4aefd4cf Mon Sep 17 00:00:00 2001 From: Crozet Sébastien Date: Tue, 1 Jun 2021 14:55:50 +0200 Subject: Add velocity-based kinematic bodies --- publish.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 publish.sh (limited to 'publish.sh') diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..9431d3e --- /dev/null +++ b/publish.sh @@ -0,0 +1,35 @@ +#! /bin/bash + +tmp=$(mktemp -d) + +echo "$tmp" + +cp -r src "$tmp"/. +cp -r LICENSE README.md "$tmp"/. + +### Publish the 2D version. +sed 's#\.\./\.\./src#src#g' build/rapier2d/Cargo.toml > "$tmp"/Cargo.toml +currdir=$(pwd) +cd "$tmp" && cargo publish +cd "$currdir" || exit + + +### Publish the 3D version. +sed 's#\.\./\.\./src#src#g' build/rapier3d/Cargo.toml > "$tmp"/Cargo.toml +cp -r LICENSE README.md "$tmp"/. +cd "$tmp" && cargo publish +cd "$currdir" || exit + +### Publish the 2D f64 version. +sed 's#\.\./\.\./src#src#g' build/rapier2d-f64/Cargo.toml > "$tmp"/Cargo.toml +currdir=$(pwd) +cd "$tmp" && cargo publish +cd "$currdir" || exit + + +### Publish the 3D f64 version. +sed 's#\.\./\.\./src#src#g' build/rapier3d-f64/Cargo.toml > "$tmp"/Cargo.toml +cp -r LICENSE README.md "$tmp"/. +cd "$tmp" && cargo publish + +rm -rf "$tmp" -- cgit