Enable backup files when setting version numbers with sed.
This commit is contained in:
@@ -16,9 +16,9 @@ for crate in . lib/*; do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
# Update the version number of this crate to $version.
|
# 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.
|
# 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
|
done
|
||||||
|
|
||||||
# Update our local Cargo.lock (not checked in).
|
# Update our local Cargo.lock (not checked in).
|
||||||
|
|||||||
Reference in New Issue
Block a user