From c862f962b8c9d51d06ae8fc7c2c753797c23ea20 Mon Sep 17 00:00:00 2001 From: Guido Draheim Date: Sun, 4 Aug 2024 22:28:50 +0200 Subject: [PATCH] make tag --- DEVGUIDE.md | 5 +++-- GNUmakefile | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/DEVGUIDE.md b/DEVGUIDE.md index 241ae4a..a6f88f4 100644 --- a/DEVGUIDE.md +++ b/DEVGUIDE.md @@ -134,8 +134,9 @@ if they have some patch that should be integrated. Here are some links: * update README.md with the result from coverage * `git push` # if necessary * wait for github workflows to be okay -* prepare a tmp.changes.txt -* `git tag -F tmp.changes.txt v1.x` to the version in zziplib.spec +* prepare a tmp.changes.txt +* `make tag` + * and `git tag -F tmp.changes.txt v1.x` to the version in zziplib.spec * `git push --tags` * update the short description on github * consider making a github release with the latest news diff --git a/GNUmakefile b/GNUmakefile index 50daa65..662f1ba 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -113,6 +113,10 @@ nextversion: ; git --no-pager diff -U0 checkversion versions: @ git --no-pager diff -U0 +tag: + @ ver=`grep "version.*=" setup.cfg | sed -e "s/version *= */v/"` \ + ; rev=`git rev-parse --short HEAD` \ + ; echo ": ${GIT} tag $$ver $$rev" # format .............................. CLANG_FORMAT=clang-format