From 42a0c2e44b6297bedfea568781409fdd19744773 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 27 Feb 2018 15:44:36 -0800 Subject: [PATCH] Enable backup files when setting version numbers with sed. --- cranelift/publish-all.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cranelift/publish-all.sh b/cranelift/publish-all.sh index b914a46394..91e6be826a 100755 --- a/cranelift/publish-all.sh +++ b/cranelift/publish-all.sh @@ -16,9 +16,9 @@ for crate in . lib/*; do continue fi # Update the version number of this crate to $version. - sed -i "" -e "s/^version = .*/version = \"$version\"/" "$crate/Cargo.toml" + sed -i.bk -e "s/^version = .*/version = \"$version\"/" "$crate/Cargo.toml" # Update the required version number of any cretonne* dependencies. - sed -i "" -e "/^cretonne/s/version = \"[^\"]*\"/version = \"$version\"/" "$crate/Cargo.toml" + sed -i.bk -e "/^cretonne/s/version = \"[^\"]*\"/version = \"$version\"/" "$crate/Cargo.toml" done # Update our local Cargo.lock (not checked in).