Skip to content

Commit

Permalink
fix(script): update singe file on version change
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuklik committed Jun 18, 2024
1 parent b901f9b commit 18cee57
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[workspace]
resolver = "2"
members = ["client", "daemon", "common"]
default-members = ["client", "daemon"]

Expand Down
14 changes: 1 addition & 13 deletions version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,9 @@ cargo test --workspace -- --include-ignored
./doc/gen.sh # make sure the docs "compile"

# Cargo.toml:
sed \
-e "s/^version = .*/version = \"$1\"/" \
-e "s/^common.*/common = { version = \"$1\", path = \"common\" }/" \
Cargo.toml > TMP
sed -e "s/^version = .*/version = \"$1\"/" Cargo.toml > TMP
mv -v TMP Cargo.toml

sed "s/^version = .*/version = \"$1\"/" common/Cargo.toml > TMP
mv -v TMP common/Cargo.toml

sed \
-e "s/^version = .*/version = \"$1\"/" \
-e "s/^common.*/common = { version = \"$1\", path = \"..\/common\" }/" \
daemon/Cargo.toml > TMP
mv -v TMP daemon/Cargo.toml

# CHANGELOG:
sed -e "s/^### Unreleased/### $1/" \
-e '1s/^/### Unreleased\n\n\n/' CHANGELOG.md > TMP
Expand Down

0 comments on commit 18cee57

Please sign in to comment.