diff --git a/scripts/use-local-mshv.sh b/scripts/use-local-mshv.sh new file mode 100755 index 00000000..6124c6fc --- /dev/null +++ b/scripts/use-local-mshv.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +line=$(grep -n '\[dev-dependencies\]' Cargo.toml | tail -n1 | cut -f1 -d:) + +sed -i "$line i [patch.\"https://github.com/rust-vmm/mshv\"]\n" ./Cargo.toml +line=$((line+1)) +sed -i "$line i mshv-bindings = { path = \"../mshv/mshv-bindings\" }" ./Cargo.toml + +line=$((line+1)) +sed -i "$line i mshv-ioctls = { path = \"../mshv/mshv-ioctls\" }" ./Cargo.toml + +