You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

set-version.sh 480B

1234567891011121314
  1. #!/bin/bash
  2. # Update the version after a new release.
  3. version=$1
  4. if ! [[ "$version" =~ ^[0-9]+.[0-9]+$ ]]; then
  5. echo "Usage: $0 <major>.<minor>"
  6. exit 1
  7. fi
  8. read major minor <<< "${version/./ }"
  9. sed -e "s/^\\(SET(RSPAMD_VERSION_MAJOR \\)[0-9]*)/\\1$major)/" \
  10. -e "s/^\\(SET(RSPAMD_VERSION_MINOR \\)[0-9]*)/\\1$minor)/" \
  11. -i CMakeLists.txt
  12. sed -e "1s/([0-9.]*)/($version)/" -i debian/changelog
  13. sed -e "s/^\\(Version: *\\)[0-9.]*$/\\1$version/" -i centos/rspamd.spec