Skip to content

Commit d24e230

Browse files
GiggleLiuclaude
andcommitted
fix: use Linux-compatible sed -i in Makefile release target
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 94b0da4 commit d24e230

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ ifndef V
151151
$(error Usage: make release V=x.y.z)
152152
endif
153153
@echo "Releasing v$(V)..."
154-
sed -i '' 's/^version = ".*"/version = "$(V)"/' Cargo.toml
155-
sed -i '' 's/^version = ".*"/version = "$(V)"/' problemreductions-macros/Cargo.toml
156-
sed -i '' 's/^version = ".*"/version = "$(V)"/' problemreductions-cli/Cargo.toml
157-
sed -i '' 's/problemreductions-macros = { version = "[^"]*"/problemreductions-macros = { version = "$(V)"/' Cargo.toml
158-
sed -i '' 's/problemreductions = { version = "[^"]*"/problemreductions = { version = "$(V)"/' problemreductions-cli/Cargo.toml
154+
sed -i 's/^version = ".*"/version = "$(V)"/' Cargo.toml
155+
sed -i 's/^version = ".*"/version = "$(V)"/' problemreductions-macros/Cargo.toml
156+
sed -i 's/^version = ".*"/version = "$(V)"/' problemreductions-cli/Cargo.toml
157+
sed -i 's/problemreductions-macros = { version = "[^"]*"/problemreductions-macros = { version = "$(V)"/' Cargo.toml
158+
sed -i 's/problemreductions = { version = "[^"]*"/problemreductions = { version = "$(V)"/' problemreductions-cli/Cargo.toml
159159
cargo check
160160
git add Cargo.toml problemreductions-macros/Cargo.toml problemreductions-cli/Cargo.toml
161161
git commit -m "release: v$(V)"

0 commit comments

Comments
 (0)