Skip to content

Commit

Permalink
Add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
guilload committed Jun 22, 2022
1 parent 7bc6dea commit 985dccb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -x

# npm install prettier prettier-plugin-toml
find . -maxdepth 4 -name "Cargo.toml" | xargs -P 4 npx prettier --write

find . -type f -name 'Cargo.toml' -exec sed -i '1,5 s/^version\ =\ "'"$1"'"/version\ =\ "'"$2"'"/g' {} +
find . -type f -name 'Cargo.toml' -exec sed -i 's/^quickwit-\(.*\)\ =\ {\ version\ =\ "'"$1"'"/quickwit-\1\ =\ {\ version\ =\ "'"$2"'"/g' {} +

0 comments on commit 985dccb

Please sign in to comment.