From 052e5e490b6b80baac6fb8f81aed70aa934d3567 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Tue, 29 Oct 2024 16:14:09 -0500 Subject: Add verion bumping script Signed-off-by: Matt Strapp --- contrib/version-bump | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 contrib/version-bump (limited to 'contrib') diff --git a/contrib/version-bump b/contrib/version-bump new file mode 100644 index 0000000..925fa17 --- /dev/null +++ b/contrib/version-bump @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +if [ -z "$GIT_TAG" ]; then + echo "GIT_TAG is not set" + exit 1 +fi + +OLD_TAG=$(jq -r '.version' package.json) + +rg "$OLD_TAG" --files-with-matches --iglob \!\*lock\* --iglob \!go.mod --iglob \!deno.json --iglob \!package.json | xargs sed -i "s/$OLD_TAG/$GIT_TAG/g" + +# fiddlge with autotools + +AUTOTOOLS_TAG=$(echo $GIT_TAG | sed 's/\./:/g') +OLD_TAG=$(echo $OLD_TAG | sed 's/\./:/g') + +echo $GIT_TAG + +sed -i "s/$GIT_TAG/$AUTOTOOLS_TAG/g" GNUmakefile.am \ No newline at end of file -- cgit v1.2.3