mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-14 04:10:59 +00:00
Handle CRLF Cargo manifest in packaging scripts (#3656)
This commit is contained in:
@@ -16,6 +16,7 @@ export ROOT
|
||||
# (`cargo xtask version` prints the same thing; awk avoids compiling xtask here.)
|
||||
workspace_version() {
|
||||
awk '
|
||||
{ sub(/\r$/, "") }
|
||||
/^\[/ { in_pkg = ($0 == "[workspace.package]") ; next }
|
||||
in_pkg && $1 == "version" { gsub(/[" ]/, "", $3); print $3; exit }
|
||||
' "$ROOT/Cargo.toml"
|
||||
|
||||
Reference in New Issue
Block a user