Skip to content

Commit 985dccb

Browse files
committed
Add release script
1 parent 7bc6dea commit 985dccb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/release.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
set -x
4+
5+
# npm install prettier prettier-plugin-toml
6+
find . -maxdepth 4 -name "Cargo.toml" | xargs -P 4 npx prettier --write
7+
8+
find . -type f -name 'Cargo.toml' -exec sed -i '1,5 s/^version\ =\ "'"$1"'"/version\ =\ "'"$2"'"/g' {} +
9+
find . -type f -name 'Cargo.toml' -exec sed -i 's/^quickwit-\(.*\)\ =\ {\ version\ =\ "'"$1"'"/quickwit-\1\ =\ {\ version\ =\ "'"$2"'"/g' {} +

0 commit comments

Comments
 (0)