Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: GitHub noreply@github.com Date: Sun, 05 Nov 2023 21:09:19 UTC Commit: 3d787371e8acec54543a8c829ffbde091f4b6941 https://github.com/geany/geany-plugins/commit/3d787371e8acec54543a8c829ffbde...
Log Message: ----------- Add version-bump script (#1288)
Modified Paths: -------------- build/version-bump
Modified: build/version-bump 32 lines changed, 32 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1,32 @@ +#!/bin/sh + +set -e + +if [ $# -ne 1 ]; then + echo "USAGE: $0 VERSION" >&2 + exit 1 +fi + +VER=$1 +FULLVER=$VER + +[ "$(echo "$FULLVER" | grep -o -F . | wc -c)" -lt 3 ] && FULLVER="$FULLVER.0" + +# update the files +sed -e 's/^(AC_INIT([^,]*, *[)[^]]*(]))/\1'"$VER"'\2/' -i configure.ac +sed -e ' +s/^(!define PRODUCT_VERSION )".*$/\1"'"$VER"'"/ +s/^(!define PRODUCT_VERSION_ID )".*$/\1"'"${FULLVER}.0"'"/ +' -i build/geany-plugins.nsi + +sed -e ' +1i Geany-Plugins '"$VER"' (unreleased)\n\n +' -i NEWS + +# show commit message to use +cat <<EOF +Message for the commit, after you have checked the changes: +----------------------------------------------------------- + +Post release version bump +EOF
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).