aboutsummaryrefslogtreecommitdiff
path: root/contrib/scripts/changelog_delta.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/scripts/changelog_delta.sh')
-rwxr-xr-xcontrib/scripts/changelog_delta.sh18
1 files changed, 3 insertions, 15 deletions
diff --git a/contrib/scripts/changelog_delta.sh b/contrib/scripts/changelog_delta.sh
index 988434903..20fb98649 100755
--- a/contrib/scripts/changelog_delta.sh
+++ b/contrib/scripts/changelog_delta.sh
@@ -1,18 +1,6 @@
1#!/bin/bash 1#!/bin/bash
2if [ $2 == "plain" ]; then
3 FORMAT=" - %s%n%b"
4 echo "Changes since $1:"
5elif [ $2 == "html" ]; then
6 FORMAT=" <li>%s<br>%b</li>"
7 echo "<ul>"
8elif [ $2 == "changelog" ]; then
9 FORMAT="%aD (%h)%n%s%n%b%nby: %cN%n"
10fi
11
12git --no-pager log --grep="^[a-zA-Z]*: " --no-merges --no-color --format="$FORMAT" $1..HEAD
13
14if [ $2 == "html" ]; then
15 echo "</ul>"
16fi
17 2
3OLDVERSION=$1
18 4
5git --no-pager log --grep="^NEWS: " -i --no-merges --no-color --format="%s%n%b" $1..HEAD | grep -i "^NEWS:\s[a-zA-Z][a-zA-Z]*" | sed 's/NEWS:/ -/i'
6echo ""