Skip to content

Commit

Permalink
Fix release script for Linux
Browse files Browse the repository at this point in the history
Now it still works on macOS, but creates a stupid backup file. But we
accept this for now, as there isn't really another way to have this
sed command work on both platforms.
  • Loading branch information
LukasKalbertodt committed Sep 13, 2023
1 parent e18a1a5 commit d944024
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions util/scripts/make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ read -r
# For the rest of the script, stop on error
set -e

sed -i "" "1s/^/v$major.$minor\n/" docs/versions.txt
sed -i "" -E 's/^version = "[^"]+.0"$/version = "'"$major.$minor"'.0"/' backend/Cargo.toml
sed -i "" \
sed -i -e "1s/^/v$major.$minor\n/" docs/versions.txt
sed -i="" -E 's/^version = "[^"]+.0"$/version = "'"$major.$minor"'.0"/' backend/Cargo.toml
sed -i -e \
'/name = "tobira"/,/^version =.*$/ s/^version =.*$/version = "'"$major.$minor"'.0"/' \
backend/Cargo.lock
git add backend/Cargo.toml backend/Cargo.lock docs/versions.txt
Expand Down

0 comments on commit d944024

Please sign in to comment.