From d179485eefe50da9d21abdd392cffd865e369509 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Mon, 9 Oct 2023 09:22:29 +0200 Subject: release.sh: update version in GNUMakefile The version is no longer present in Makefile which has been preserved for explicit error reporting with non-GNU make versions. Update the version in GNUMakefile instead. Fixes: d725defa07b5 ("mk: deprecate BSD make in favor of GNU make") Reported-by: Anton Mosich Signed-off-by: Robin Jarry Acked-by: Moritz Poldrack --- .editorconfig | 2 +- GNUmakefile | 2 +- contrib/release.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.editorconfig b/.editorconfig index 6a5a6ddf..7c5d55d3 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,7 +12,7 @@ indent_style = tab max_line_length = 80 tab_width = 8 -[Makefile] +[*Makefile] indent_style = tab [**.scd] diff --git a/GNUmakefile b/GNUmakefile index e9ad9073..53b55f8c 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,6 +1,6 @@ # variables that can be changed by users # -VERSION ?= $(shell git describe --long --abbrev=12 --tags --dirty 2>/dev/null || echo 0.15.2) +VERSION ?= $(shell git describe --long --abbrev=12 --tags --dirty 2>/dev/null || echo 0.16.0) PREFIX ?= /usr/local BINDIR ?= $(PREFIX)/bin SHAREDIR ?= $(PREFIX)/share/aerc diff --git a/contrib/release.sh b/contrib/release.sh index 464eaadd..6ba01e14 100755 --- a/contrib/release.sh +++ b/contrib/release.sh @@ -12,9 +12,9 @@ fi tag_url="https://git.sr.ht/~rjarry/aerc/refs/$next_tag" echo "======= Creating release commit..." -sed -i Makefile -e "s/$prev_tag/$next_tag/g" +sed -i GNUMakefile -e "s/$prev_tag/$next_tag/g" sed -i CHANGELOG.md -e "s|^## \[Unreleased\].*|&\n\n## [$next_tag]($tag_url) - $(date +%Y-%m-%d)|" -git add Makefile CHANGELOG.md +git add GNUMakefile CHANGELOG.md git commit -sm "Release version $next_tag" echo "======= Creating tag..." -- cgit