[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: BUILD: Add functionality to generate cha
From: |
gnunet |
Subject: |
[gnunet] branch master updated: BUILD: Add functionality to generate changes in plain text and HTML |
Date: |
Thu, 08 Dec 2022 07:37:50 +0100 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 2d257589d BUILD: Add functionality to generate changes in plain text
and HTML
2d257589d is described below
commit 2d257589da20487334447fe33616bdd7a27a79ef
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Thu Dec 8 15:37:43 2022 +0900
BUILD: Add functionality to generate changes in plain text and HTML
---
ChangeLog | 10 ++++++++++
contrib/scripts/changelog_delta.sh | 19 +++++++++++++++++--
2 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c893becd3..51982a07d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+Thu, 8 Dec 2022 15:11:49 +0900 (3889a387e)
+BUILD: Add some helper scripts for release maintenance
+
+by: Martin Schanzenbach
+
+Tue, 6 Dec 2022 22:41:18 +0900 (6bebc94d2)
+BUILD: Remove unused header from pkgconfig directory.
+
+by: Martin Schanzenbach
+
Mon, 5 Dec 2022 16:59:52 +0900 (1d670b15e)
BUILD: include generated major/minor/micro version in gnunet_config.h - Martin
Schanzenbach
diff --git a/contrib/scripts/changelog_delta.sh
b/contrib/scripts/changelog_delta.sh
index bfce886c2..4b2cb21ae 100755
--- a/contrib/scripts/changelog_delta.sh
+++ b/contrib/scripts/changelog_delta.sh
@@ -1,3 +1,18 @@
#!/bin/bash
-LASTHASH=$(head -n1 ChangeLog | cut -d " " -f 7 | tr -d \( | tr -d \))
-git log --grep="^[a-zA-Z]*: " --no-merges --no-color --format="%aD
(%h)%n%s%n%b%nby: %cN%n" $LASTHASH..HEAD
+if [ $2 == "plain" ]; then
+ FORMAT=" - %s%n%b"
+ echo "Changes since $1:"
+elif [ $2 == "html" ]; then
+ FORMAT="<li>%s<br>%b</li>"
+ echo "<ul>"
+elif [ $2 == "changelog" ]; then
+ FORMAT="%aD (%h)%n%s%n%b%nby: %cN%n"
+fi
+
+git --no-pager log --grep="^[a-zA-Z]*: " --no-merges --no-color
--format="$FORMAT" $1..HEAD
+
+if [ $2 == "html" ]; then
+ echo "</ul>"
+fi
+
+
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: BUILD: Add functionality to generate changes in plain text and HTML,
gnunet <=