diff options
author | Matt Strapp <matt@mattstrapp.net> | 2024-10-29 16:30:15 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2024-10-29 16:31:27 -0500 |
commit | 678375be75081459bf267ac895083e4785fb455c (patch) | |
tree | ad2bc8d9a7a65d8cab6ada14c96710e10e22dba8 /contrib/version-bump | |
parent | oops (diff) | |
download | locusts-678375be75081459bf267ac895083e4785fb455c.tar locusts-678375be75081459bf267ac895083e4785fb455c.tar.gz locusts-678375be75081459bf267ac895083e4785fb455c.tar.bz2 locusts-678375be75081459bf267ac895083e4785fb455c.tar.lz locusts-678375be75081459bf267ac895083e4785fb455c.tar.xz locusts-678375be75081459bf267ac895083e4785fb455c.tar.zst locusts-678375be75081459bf267ac895083e4785fb455c.zip |
oops 2
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'contrib/version-bump')
-rw-r--r-- | contrib/version-bump | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/version-bump b/contrib/version-bump index c3f12bb..d398ce4 100644 --- a/contrib/version-bump +++ b/contrib/version-bump @@ -1,12 +1,14 @@ #!/usr/bin/env bash if [ -z "$GIT_TAG" ]; then - echo "GIT_TAG is not set" - exit 1 + echo "GIT_TAG is not set, guessing from changeset" + GIT_TAG=$(jq -r '.version' src/packages/locusts/package.json) fi OLD_TAG=$(jq -r '.version' package.json) +echo "Bumping version from $OLD_TAG to $GIT_TAG" + rg "$OLD_TAG" --files-with-matches --iglob \!\*lock\* --iglob \!go.mod --iglob \!deno.json --iglob \!package.json --iglob \!\*.md | xargs sed -i "s/$OLD_TAG/$GIT_TAG/g" # fiddle with autotools |