diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 21:30:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 21:30:40 +0000 |
commit | 133a45c109da5310add55824db21af5239951f93 (patch) | |
tree | ba6ac4c0a950a0dda56451944315d66409923918 /set-version.sh | |
parent | Initial commit. (diff) | |
download | rspamd-upstream.tar.xz rspamd-upstream.zip |
Adding upstream version 3.8.1.upstream/3.8.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'set-version.sh')
-rwxr-xr-x | set-version.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/set-version.sh b/set-version.sh new file mode 100755 index 0000000..bd15b3a --- /dev/null +++ b/set-version.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# Update the version after a new release. +version=$1 +if ! [[ "$version" =~ ^[0-9]+.[0-9]+$ ]]; then + echo "Usage: $0 <major>.<minor>" + exit 1 +fi + +read major minor <<< "${version/./ }" +sed -e "s/^\\(SET(RSPAMD_VERSION_MAJOR \\)[0-9]*)/\\1$major)/" \ + -e "s/^\\(SET(RSPAMD_VERSION_MINOR \\)[0-9]*)/\\1$minor)/" \ + -i CMakeLists.txt +sed -e "1s/([0-9.]*)/($version)/" -i debian/changelog +sed -e "s/^\\(Version: *\\)[0-9.]*$/\\1$version/" -i centos/rspamd.spec |